1
0
Fork 0
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:
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)
assistant = db.relationship("Assistant", back_populates="user", lazy=True, uselist=False)
def setActiveSemester(semester):
def setActiveSemester(self, semester):
if semester is None:
flash(f"Can not change the active semester to None!", "error")
return