1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-09-19 18:31:16 +00:00

Fix function call

This commit is contained in:
Mo 2022-05-29 22:05:26 +02:00
parent 6f22253a49
commit 45359b2c87

View file

@ -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