neuer fix
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user