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:
parent
8333da3c91
commit
85606123a5
1 changed files with 7 additions and 1 deletions
|
@ -313,6 +313,12 @@ class Appointment(db.Model):
|
||||||
self.assistant = assistant
|
self.assistant = assistant
|
||||||
self.group_experiment = group_experiment
|
self.group_experiment = group_experiment
|
||||||
|
|
||||||
|
def customUpdateDate(self, date):
|
||||||
|
self.date = date
|
||||||
|
|
||||||
|
def customUpdateSpecial(self, special):
|
||||||
|
self.special = special
|
||||||
|
|
||||||
def repr(self):
|
def repr(self):
|
||||||
return f"{self.date} {self.group_experiment.repr()}"
|
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}"
|
return f"Oral {self.oral_mark}; Prot {self.protocol_mark}"
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return f"<EXPMARL {self.repr()}>"
|
return f"<EXPMARK {self.repr()}>"
|
||||||
|
|
||||||
|
|
||||||
class User(db.Model, FsUserMixin):
|
class User(db.Model, FsUserMixin):
|
||||||
|
|
Loading…
Reference in a new issue