summaryrefslogtreecommitdiff
path: root/jimbrella/utils.py
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2021-10-27 20:50:47 +0800
committerFrederick Yin <fkfd@fkfd.me>2021-10-27 20:50:47 +0800
commit328e7891bbdcb4c869112fa44438d8da5ea1ce5e (patch)
treec459af04a16f7677836cff2afd18127e1f817bb3 /jimbrella/utils.py
parent00e4e6ecc80f8e3654bd176ec7067ab35b55d6f6 (diff)
Refactor: separate CSV table into new module
Database is now subclass of CsvTable
Diffstat (limited to 'jimbrella/utils.py')
-rw-r--r--jimbrella/utils.py3
1 files changed, 3 insertions, 0 deletions
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)