fixxed template error

This commit is contained in:
2026-02-16 16:15:55 +01:00
parent 463408f12b
commit 6adf6ab955
2 changed files with 20 additions and 7 deletions
+7
View File
@@ -21,6 +21,13 @@ def create_app():
template_folder='../templates', # ← Root/templates statt app/templates
static_folder='../static') # ← Root/static
from datetime import timedelta
def timedelta_filter(td):
return str(td) # oder td.total_seconds() als Zahl
app.jinja_env.filters['timedelta'] = timedelta_filter
# Config laden
app.config.from_object('config.Config')