fix empty db state
This commit is contained in:
parent
9e9514db8c
commit
afe12787c9
1 changed files with 2 additions and 0 deletions
|
|
@ -13,6 +13,8 @@ htmx = HTMX(app)
|
|||
|
||||
@app.template_filter()
|
||||
def format_datetime(value):
|
||||
if not value:
|
||||
return value
|
||||
return datetime.fromtimestamp(value).isoformat()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue