Fix UP031 errors

reported by ruff 0.8.0 .
This commit is contained in:
Nicola Soranzo
2024-11-24 21:35:23 +00:00
parent 1d99e6ddff
commit 26a4e146e0
28 changed files with 85 additions and 82 deletions
+2 -2
View File
@@ -205,14 +205,14 @@ def query(
if debug:
print("Executed:")
print(cur.query)
print("Query returned %d rows" % cur.rowcount)
print(f"Query returned {cur.rowcount} rows")
if source == "metrics":
times = numpy.array([r[0] for r in cur if r[0]])
elif source == "history":
times = numpy.array([r[0].total_seconds() for r in cur if r[0]])
print("Collected %d times" % times.size)
print(f"Collected {times.size} times")
if times.size == 0:
return