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 /routers | |
| 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 'routers')
| -rw-r--r-- | routers/stats.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/routers/stats.py b/routers/stats.py index 2abc493..15063cb 100644 --- a/routers/stats.py +++ b/routers/stats.py @@ -65,7 +65,6 @@ def _build_stats_payload(films: list[Film]) -> dict: watched_with["solo"] += 1 total_watched = len(films) - rewatched = sum(1 for film in films if film.rewatch or film.rewatch_count > 0) title_groups = defaultdict(list) for film in films: @@ -137,11 +136,6 @@ def _build_stats_payload(films: list[Film]) -> dict: for watched_date, count in sorted(days.items()) ], "films_per_day_365": trailing_days, - "rewatch_rate": { - "rewatched": rewatched, - "total_watched": total_watched, - "rate": round(rewatched / total_watched, 4) if total_watched else 0, - }, "rewatch_patterns": rewatch_details, "watched_with_breakdown": [ {"watched_with": watched_with_value, "count": count} |
