diff options
Diffstat (limited to 'jimbrella/admin.py')
-rw-r--r-- | jimbrella/admin.py | 6 |
1 files changed, 3 insertions, 3 deletions
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"] = "" |