From 54ec3d6e2d889fc8195f4868b42f2b51b6048f2e Mon Sep 17 00:00:00 2001 From: oberon Date: Mon, 16 Feb 2026 16:33:38 +0100 Subject: [PATCH] neuer fix --- app/__init__.py | 9 --------- templates/base.html | 12 ++++++++---- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/app/__init__.py b/app/__init__.py index 6c9924c..cdd861a 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -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') diff --git a/templates/base.html b/templates/base.html index d1dd14b..1711ea0 100644 --- a/templates/base.html +++ b/templates/base.html @@ -87,18 +87,22 @@ crossorigin="anonymous"> {% block scripts %} - {% if config %} + {% if config is defined and config is not none %} + {% else %} + {% endif %} - +