diff options
author | Frederick Yin <fkfd@fkfd.me> | 2021-10-27 23:06:19 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2021-10-27 23:07:05 +0800 |
commit | 4d35e9f2a36d1e0c938a985d4afffcb6ee99c193 (patch) | |
tree | 58cc4190714a243b982212ea35d58ea83323e1a6 /jimbrella | |
parent | 40ecb7b06b08f1e803d3ae4d59eeaf9bebcd6491 (diff) |
Reformat database.py
Diffstat (limited to 'jimbrella')
-rw-r--r-- | jimbrella/database.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/jimbrella/database.py b/jimbrella/database.py index 07ff6e0..7f82799 100644 --- a/jimbrella/database.py +++ b/jimbrella/database.py @@ -56,7 +56,9 @@ class Database(CsvTable): {"name": "tenant_email"}, { "name": "lent_at", - "serializer": lambda d: d.isoformat(timespec="seconds") if d else "", + "serializer": lambda d: d.isoformat(timespec="seconds") + if d + else "", "deserializer": lambda d: datetime.fromisoformat(d) if d else None, }, ], |