From 45359b2c87e0e91f46fe1457bda008b5aa1e575e Mon Sep 17 00:00:00 2001 From: Mo8it Date: Sun, 29 May 2022 22:05:26 +0200 Subject: [PATCH] Fix function call --- advlabdb/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advlabdb/models.py b/advlabdb/models.py index c88e592..1e77644 100644 --- a/advlabdb/models.py +++ b/advlabdb/models.py @@ -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