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:
parent
0278f2b68d
commit
0517f7ffb8
4 changed files with 52 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue