Option für Klausursortierung hinzugefügt

This commit is contained in:
2021-09-24 16:28:01 +02:00
parent 9b73706521
commit ef97dfce31
3 changed files with 30 additions and 8 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ def send_reminder_mails() -> int:
for lehrer in Lehrer.query.all():
not_edited_list = Klausur.query \
.filter(and_(Klausur.date <= datetime.now().date(), Klausur.lehrer == lehrer, ~Klausur.edited)) \
.order_by(Klausur.date.desc()).all()
.order_by(Klausur.date).all()
if len(not_edited_list) == 0:
continue