diff options
author | Frederick Yin <fkfd@fkfd.me> | 2022-02-04 20:50:18 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2022-02-04 20:50:18 +0800 |
commit | 14feb6a4378668d054d28a1335eacd2026b621dc (patch) | |
tree | e907870df71b8d27ec525d376c1224adb0faccff /jimbrella | |
parent | 87c661557186a4975fa94977ac1ac1be9bd87d2e (diff) |
"Invalid date" also indicated in lent_time_ago
Diffstat (limited to 'jimbrella')
-rw-r--r-- | jimbrella/admin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jimbrella/admin.py b/jimbrella/admin.py index d5df4d4..1385d0a 100644 --- a/jimbrella/admin.py +++ b/jimbrella/admin.py @@ -50,7 +50,7 @@ def index(): ) except ValueError: umb["lent_at"] = "Invalid date" - umb["lent_time_ago"] = "" + umb["lent_time_ago"] = "Invalid date" return render_template( "admin/index.html", @@ -85,7 +85,7 @@ def umbrellas(): ) except ValueError: umb["lent_at"] = "Invalid date" - umb["lent_time_ago"] = "" + umb["lent_time_ago"] = "Invalid date" error = request.args.get("error") template = ( |