diff options
| author | Tyler Hoang <tyler@tylerhoang.xyz> | 2026-05-06 16:50:56 -0700 |
|---|---|---|
| committer | Tyler Hoang <tyler@tylerhoang.xyz> | 2026-05-06 16:50:56 -0700 |
| commit | 21f0cb70ca8f6c1731bf0e514e2668f42ea00718 (patch) | |
| tree | 8a990bc0cf865cc6fef0a9bcbde16f4b88416163 | |
| parent | 78bf4f4e427d72187826dc97f15fa61e31aafc42 (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>
| -rw-r--r-- | templates/stats.html | 5 |
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(""); |
