mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-12-20 23:41:20 +00:00
Fix function call
This commit is contained in:
parent
6f22253a49
commit
45359b2c87
1 changed files with 1 additions and 1 deletions
|
@ -599,7 +599,7 @@ class User(db.Model, FsUserMixin):
|
||||||
admin = db.relationship("Admin", back_populates="user", lazy=False, uselist=False)
|
admin = db.relationship("Admin", back_populates="user", lazy=False, uselist=False)
|
||||||
assistant = db.relationship("Assistant", back_populates="user", lazy=True, uselist=False)
|
assistant = db.relationship("Assistant", back_populates="user", lazy=True, uselist=False)
|
||||||
|
|
||||||
def setActiveSemester(semester):
|
def setActiveSemester(self, semester):
|
||||||
if semester is None:
|
if semester is None:
|
||||||
flash(f"Can not change the active semester to None!", "error")
|
flash(f"Can not change the active semester to None!", "error")
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue