summaryrefslogtreecommitdiff
path: root/jimbrella/admin.py
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2022-02-03 16:11:38 +0800
committerFrederick Yin <fkfd@fkfd.me>2022-02-03 16:11:38 +0800
commitabff246c6af8bf64fce12e5f95fd54e3787d470b (patch)
tree7b0cdfad270eaa603e60b58932a9271a3b747619 /jimbrella/admin.py
parent616116a84120220adb8e36cb364f08b0a638807e (diff)
Reformat w/ black
Diffstat (limited to 'jimbrella/admin.py')
-rw-r--r--jimbrella/admin.py6
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"] = ""