This commit is contained in:
terorie
2018-12-07 00:36:14 +01:00
parent 3335ec5f82
commit b36bf71995

2
app.py
View File

@@ -61,7 +61,7 @@ def datetime_format(value, format='%Y-%m-%d %H:%M:%S'):
return time.strftime(format, time.gmtime(value))
@app.template.filetr("duration_format")
@app.template_filter("duration_format")
def duration_format(value):
delay = datetime.timedelta(seconds=value)
if (delay.days > 0):