ruff: enable and fix C4 ruleset
This commit is contained in:
parent
c08ddbc781
commit
d244c7cc4e
19 changed files with 48 additions and 38 deletions
|
@ -83,9 +83,10 @@ def stats() -> Stats:
|
|||
|
||||
def fill_influxdb() -> None:
|
||||
from my.core import influxdb
|
||||
|
||||
# todo needs to be more automatic
|
||||
sd = (dict(
|
||||
dt=x.dt,
|
||||
track=x.track,
|
||||
) for x in scrobbles())
|
||||
sd = ({
|
||||
'dt': x.dt,
|
||||
'track': x.track,
|
||||
} for x in scrobbles())
|
||||
influxdb.fill(sd, measurement=__name__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue