feat: cache stats now prints total row
This commit is contained in:
@@ -389,6 +389,14 @@ def stats():
|
|||||||
f"{src:<{src_w}} "
|
f"{src:<{src_w}} "
|
||||||
+ " ".join(f"{c:>{w}}" for c, w in zip(counts, col_w))
|
+ " ".join(f"{c:>{w}}" for c, w in zip(counts, col_w))
|
||||||
)
|
)
|
||||||
|
totals = [
|
||||||
|
str(sum(table[src].get(st, 0) for src in sources)) for st in all_statuses
|
||||||
|
]
|
||||||
|
print("-" * src_w + " " + " ".join("-" * w for w in col_w))
|
||||||
|
print(
|
||||||
|
f"{'total':<{src_w}} "
|
||||||
|
+ " ".join(f"{c:>{w}}" for c, w in zip(totals, col_w))
|
||||||
|
)
|
||||||
|
|
||||||
# Confidence distribution (positive entries only)
|
# Confidence distribution (positive entries only)
|
||||||
buckets = s.get("confidence_buckets", {})
|
buckets = s.get("confidence_buckets", {})
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "lrx-cli"
|
name = "lrx-cli"
|
||||||
version = "0.4.3"
|
version = "0.4.4"
|
||||||
description = "Fetch line-synced lyrics for your music player."
|
description = "Fetch line-synced lyrics for your music player."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.13"
|
requires-python = ">=3.13"
|
||||||
|
|||||||
Reference in New Issue
Block a user