Jinja-Macros separiert und time-Tags hinzugefügt

This commit is contained in:
2021-07-28 23:33:53 +02:00
parent c5371af7c9
commit c2b936dc8e
10 changed files with 27 additions and 39 deletions
+2 -2
View File
@@ -78,8 +78,8 @@ def import_plan(xml_file: TextIO, stufe: Stufe, new_lehrer_pwd: str) -> None:
if startperiod < 0 or startperiod > endperiod:
raise KlausurplanImportError(f"Zu importierender Plan für die Stufe {stufe.name} enthält ungültigen "
f"Zeitraum (Termin: {util.format_date(date)}; VonStd: {startperiod} BisStd: "
f"{endperiod})")
f"Zeitraum (Termin: {termin.attributes['Datum'].value}; VonStd: {startperiod} "
f"BisStd: {endperiod})")
if db.session.query(exists().where(and_(Klausur.date == date, Klausur.stufe == stufe))).scalar():
raise KlausurplanImportError(f"Zu importierender Plan für die {stufe.name} enthält zwei Klausurtermine "