feat: add cold start questions and accessibility check
CI / test (push) Successful in 3m13s

This commit is contained in:
strsv committed 2026-11-06 19:53:07 +03:00
1 parent f25c69cd87
commit 7e1769f134
12 files changed
+126 -17

No files matched your search

+6
View File
@@ -798,12 +798,18 @@ class Handler(BaseHTTPRequestHandler):
GROUP BY tn.name ORDER BY c DESC LIMIT 80""")]
statuses = {r["status"]: r["c"] for r in con.execute(
"SELECT status, COUNT(*) c FROM personal GROUP BY status")}
signals = con.execute("""
SELECT (SELECT COUNT(*) FROM personal
WHERE COALESCE(favorite,0)=1 OR COALESCE(rating,0)>=8)
+ (SELECT COUNT(*) FROM reco_feedback) AS c
""").fetchone()["c"]
self._json({
"total": total, "installed": installed, "played": played,
"hours": round(minutes / 60), "cached": cached, "missing": missing,
"pending": max(0, total - cached - missing),
"translated": translated, "translate_pending": translate_pending,
"genres": genres, "tags": tags, "statuses": statuses,
"signals": signals,
})
finally:
con.close()