core/influxdb: add main method to create influx measurement and fill with values

allows running something like

    python3 -m my.core.influxdb populate my.zotero
This commit is contained in:
Dima Gerasimov 2021-04-26 09:41:39 +01:00 committed by karlicoss
parent 0278f2b68d
commit 0517f7ffb8
4 changed files with 52 additions and 10 deletions

View file

@ -53,6 +53,7 @@ def _dal() -> dal.DAL:
return dal.DAL(sources)
# TODO they are in reverse chronological order...
def highlights() -> List[Res[Highlight]]:
# todo hmm. otherwise mypy complans
key: Callable[[Highlight], datetime] = lambda h: h.created