mirror of
https://github.com/simon987/od-database.git
synced 2025-12-15 15:49:04 +00:00
Typo
This commit is contained in:
2
app.py
2
app.py
@@ -61,7 +61,7 @@ def datetime_format(value, format='%Y-%m-%d %H:%M:%S'):
|
|||||||
return time.strftime(format, time.gmtime(value))
|
return time.strftime(format, time.gmtime(value))
|
||||||
|
|
||||||
|
|
||||||
@app.template.filetr("duration_format")
|
@app.template_filter("duration_format")
|
||||||
def duration_format(value):
|
def duration_format(value):
|
||||||
delay = datetime.timedelta(seconds=value)
|
delay = datetime.timedelta(seconds=value)
|
||||||
if (delay.days > 0):
|
if (delay.days > 0):
|
||||||
|
|||||||
Reference in New Issue
Block a user