1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-11-08 21:21:06 +00:00

Fix limit before filter bug

This commit is contained in:
Mo 2022-09-19 14:20:33 +02:00
parent a2162363b9
commit bc0da570cd

View file

@ -189,7 +189,7 @@ class AssistantUserView(SecureAssistantModelView):
@staticmethod @staticmethod
def semesterQueryFactory(): def semesterQueryFactory():
# Show only last two semesters to assistants # Show only last two semesters to assistants
return Semester.query.order_by(Semester.id.desc()).limit(2).where(Semester.done == False) return Semester.query.order_by(Semester.id.desc()).where(Semester.done == False).limit(2)
active_semester = QuerySelectField( active_semester = QuerySelectField(
"Active Semester", "Active Semester",