From 4d35e9f2a36d1e0c938a985d4afffcb6ee99c193 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Wed, 27 Oct 2021 23:06:19 +0800 Subject: Reformat database.py --- jimbrella/database.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'jimbrella/database.py') 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, }, ], -- cgit v1.2.3