diff options
| author | Tyler Hoang <tyler@tylerhoang.xyz> | 2026-05-07 00:04:38 -0700 |
|---|---|---|
| committer | Tyler Hoang <tyler@tylerhoang.xyz> | 2026-05-07 00:04:38 -0700 |
| commit | efd4f1ea3cf9f3d7335ed718c5d7fd44354147f9 (patch) | |
| tree | f4f442d4738cc09df0deaf8065194ff92d398bf4 /templates/stats.html | |
| parent | d90430bbec3739df43b261618816077598499648 (diff) | |
Remove rewatch rate metric
The rewatch rate (percentage of films rewatched) is less useful than the detailed rewatch patterns panel. Removed the metric section from both the template and backend payload.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Diffstat (limited to 'templates/stats.html')
| -rw-r--r-- | templates/stats.html | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/templates/stats.html b/templates/stats.html index 34d796e..797054a 100644 --- a/templates/stats.html +++ b/templates/stats.html @@ -62,16 +62,6 @@ <section class="stats-panel"> <div class="stats-panel-header"> <div> - <p class="eyebrow">Rewatch</p> - <h2>Rate</h2> - </div> - </div> - <div id="rewatch-rate" class="stats-metric"></div> - </section> - - <section class="stats-panel"> - <div class="stats-panel-header"> - <div> <p class="eyebrow">Films</p> <h2>Rewatches</h2> </div> @@ -168,13 +158,6 @@ </div> `).join(""); - const rewatchRate = document.getElementById("rewatch-rate"); - const rate = data.rewatch_rate.total_watched ? Math.round(data.rewatch_rate.rate * 100) : 0; - rewatchRate.innerHTML = ` - <strong>${rate}%</strong> - <span>${data.rewatch_rate.rewatched} of ${data.rewatch_rate.total_watched} watched films were rewatches.</span> - `; - const rewatchPatterns = document.getElementById("rewatch-patterns-list"); if (data.rewatch_patterns && data.rewatch_patterns.length > 0) { rewatchPatterns.innerHTML = data.rewatch_patterns.map((item) => { |
