1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-12-20 23:41:20 +00:00

Added customUpdateDate and customUpdateSpecial for Appointment

This commit is contained in:
Mo 2021-07-30 23:37:38 +02:00
parent 8333da3c91
commit 85606123a5

View file

@ -313,6 +313,12 @@ class Appointment(db.Model):
self.assistant = assistant
self.group_experiment = group_experiment
def customUpdateDate(self, date):
self.date = date
def customUpdateSpecial(self, special):
self.special = special
def repr(self):
return f"{self.date} {self.group_experiment.repr()}"
@ -407,7 +413,7 @@ class ExperimentMark(db.Model):
return f"Oral {self.oral_mark}; Prot {self.protocol_mark}"
def __repr__(self):
return f"<EXPMARL {self.repr()}>"
return f"<EXPMARK {self.repr()}>"
class User(db.Model, FsUserMixin):