From efd4f1ea3cf9f3d7335ed718c5d7fd44354147f9 Mon Sep 17 00:00:00 2001 From: Tyler Hoang Date: Thu, 7 May 2026 00:04:38 -0700 Subject: 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 --- routers/stats.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'routers/stats.py') 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} -- cgit v1.3-2-g0d8e