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
-6
View File
@@ -182,12 +182,6 @@ class Klausur(db.Model):
def __str__(self):
return f"{self.kursname}, {self.stufe.name} (ID:{self.id})"
def date_formatted(self) -> str:
"""
:return: Klausurdatum als String im Format WW, DD.MM.YYYY (siehe util.format_date)
"""
return util.format_date(self.date)
def is_bygone(self):
"""
:return: ``True``, falls diese Klausur vergangen ist, ``False``, falls nicht