From 14feb6a4378668d054d28a1335eacd2026b621dc Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Fri, 4 Feb 2022 20:50:18 +0800 Subject: "Invalid date" also indicated in lent_time_ago --- jimbrella/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jimbrella/admin.py') 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 = ( -- cgit v1.2.3