diff options
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} |
