summaryrefslogtreecommitdiff
path: root/templates/stats.html
diff options
context:
space:
mode:
authorTyler Hoang <tyler@tylerhoang.xyz>2026-05-06 16:50:56 -0700
committerTyler Hoang <tyler@tylerhoang.xyz>2026-05-06 16:50:56 -0700
commit21f0cb70ca8f6c1731bf0e514e2668f42ea00718 (patch)
tree8a990bc0cf865cc6fef0a9bcbde16f4b88416163 /templates/stats.html
parent78bf4f4e427d72187826dc97f15fa61e31aafc42 (diff)
Hide solo from watched with stats list
Filter out 'solo' entries from the watched_with_breakdown on the stats page so only companions are shown. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Diffstat (limited to 'templates/stats.html')
-rw-r--r--templates/stats.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/stats.html b/templates/stats.html
index 2983418..e0a6a91 100644
--- a/templates/stats.html
+++ b/templates/stats.html
@@ -111,7 +111,10 @@
`).join("");
const watchedWith = document.getElementById("watched-with");
- watchedWith.innerHTML = data.watched_with_breakdown.slice(0, 8).map((item) => `
+ watchedWith.innerHTML = data.watched_with_breakdown
+ .filter((item) => item.watched_with.toLowerCase() !== "solo")
+ .slice(0, 8)
+ .map((item) => `
<li><span>${item.watched_with}</span><strong>${item.count}</strong></li>
`).join("");