ruff: enable and fix C4 ruleset
This commit is contained in:
parent
c08ddbc781
commit
d244c7cc4e
19 changed files with 48 additions and 38 deletions
|
@ -82,12 +82,13 @@ def fake_data(rows: int=1000) -> Iterator:
|
|||
|
||||
|
||||
def fill_influxdb() -> None:
|
||||
from .core import influxdb
|
||||
it = (dict(
|
||||
dt=e.dt,
|
||||
duration_d=e.duration_s,
|
||||
tags=dict(activity=e.activity),
|
||||
) for e in entries() if isinstance(e, Entry)) # TODO handle errors in core.influxdb
|
||||
from my.core import influxdb
|
||||
|
||||
it = ({
|
||||
'dt': e.dt,
|
||||
'duration_d': e.duration_s,
|
||||
'tags': {'activity': e.activity},
|
||||
} for e in entries() if isinstance(e, Entry)) # TODO handle errors in core.influxdb
|
||||
influxdb.fill(it, measurement=__name__)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue