neuer fix

This commit is contained in:
2026-02-16 16:33:38 +01:00
parent 02150e0e62
commit 54ec3d6e2d
2 changed files with 8 additions and 13 deletions
-9
View File
@@ -21,15 +21,6 @@ def create_app():
template_folder='../templates', # ← Root/templates statt app/templates
static_folder='../static') # ← Root/static
from datetime import timedelta
def timedelta_filter(value):
if isinstance(value, timedelta):
return value.total_seconds() # oder str(value)
return value
app.jinja_env.filters['timedelta'] = timedelta_filter
# Config laden
app.config.from_object('config.Config')