summaryrefslogtreecommitdiff
path: root/jimbrella/admin.py
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2022-02-04 20:50:18 +0800
committerFrederick Yin <fkfd@fkfd.me>2022-02-04 20:50:18 +0800
commit14feb6a4378668d054d28a1335eacd2026b621dc (patch)
treee907870df71b8d27ec525d376c1224adb0faccff /jimbrella/admin.py
parent87c661557186a4975fa94977ac1ac1be9bd87d2e (diff)
"Invalid date" also indicated in lent_time_ago
Diffstat (limited to 'jimbrella/admin.py')
-rw-r--r--jimbrella/admin.py4
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 = (