From 328e7891bbdcb4c869112fa44438d8da5ea1ce5e Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Wed, 27 Oct 2021 20:50:47 +0800 Subject: Refactor: separate CSV table into new module Database is now subclass of CsvTable --- jimbrella/utils.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'jimbrella/utils.py') diff --git a/jimbrella/utils.py b/jimbrella/utils.py index cac8bc9..ce57bf9 100644 --- a/jimbrella/utils.py +++ b/jimbrella/utils.py @@ -1,5 +1,8 @@ from datetime import datetime, timedelta, tzinfo +# identity function +identity = lambda x: x + def human_datetime(time: datetime) -> str: return "{:%Y-%m-%d %H:%M:%S}".format(time) -- cgit v1.2.3