From abff246c6af8bf64fce12e5f95fd54e3787d470b Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Thu, 3 Feb 2022 16:11:38 +0800 Subject: Reformat w/ black --- jimbrella/admin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'jimbrella/admin.py') diff --git a/jimbrella/admin.py b/jimbrella/admin.py index 799ff66..60f7596 100644 --- a/jimbrella/admin.py +++ b/jimbrella/admin.py @@ -65,9 +65,9 @@ def umbrellas(): # web interface provides no timezone so UTC+8 is assumed lent_at = isoparse(umb["lent_at"]).replace(tzinfo=CST) umb["lent_at"] = lent_at.isoformat(timespec="seconds") - umb["lent_time_ago"] = human_timedelta( - datetime.now().astimezone(CST) - lent_at - ) + " ago" + umb["lent_time_ago"] = ( + human_timedelta(datetime.now().astimezone(CST) - lent_at) + " ago" + ) except ValueError: umb["lent_at"] = "Invalid date" umb["lent_time_ago"] = "" -- cgit v1.2.3