feat: cache stats now prints total row

This commit is contained in:
2026-04-04 09:47:36 +02:00
parent 3e35bca73c
commit 048ae98fb6
3 changed files with 10 additions and 2 deletions
+8
View File
@@ -389,6 +389,14 @@ def stats():
f"{src:<{src_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)
buckets = s.get("confidence_buckets", {})
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "lrx-cli"
version = "0.4.3"
version = "0.4.4"
description = "Fetch line-synced lyrics for your music player."
readme = "README.md"
requires-python = ">=3.13"
Generated
+1 -1
View File
@@ -153,7 +153,7 @@ wheels = [
[[package]]
name = "lrx-cli"
version = "0.4.2"
version = "0.4.3"
source = { editable = "." }
dependencies = [
{ name = "cyclopts" },