fix error where same prof can't be used twice for apparats

This commit is contained in:
WorldTeacher
2024-09-20 08:28:35 +02:00
parent 84689c70ed
commit 14627cb824
2 changed files with 114 additions and 91 deletions

View File

@@ -25,9 +25,11 @@ class ApparatData:
"profname": self.profname,
"prof_mail": self.prof_mail,
"prof_tel": self.prof_tel,
"fullname": self.profname,
"fullname": f"{self.profname.split(',')[0].strip()} {self.profname.split(',')[1].strip()}",
}
def translateToFullname(self):
return f"{self.profname.split(',')[0].strip()} {self.profname.split(',')[1].strip()}"
@dataclass
class BookData: