diff options
| author | Tyler Hoang <tyler@tylerhoang.xyz> | 2026-05-07 00:02:25 -0700 |
|---|---|---|
| committer | Tyler Hoang <tyler@tylerhoang.xyz> | 2026-05-07 00:02:25 -0700 |
| commit | 84ac42e5be00fe7591a6946f27a33770b0270a41 (patch) | |
| tree | 5f0072c63e3d216149606d211b343698fc38472e /main.py | |
| parent | 845843a76c318c4894c111e4019e53af6bb0b3f2 (diff) | |
Add rewatch patterns stats panel
Adds a "Rewatches" section to /stats that displays films you've watched multiple times, grouped by title. For each rewatched film, shows:
- Watch count (e.g., "3×")
- Rating history (e.g., ✦ → ✦✦ → ✦) with accent highlight when ratings drift
- Days between first and last watch
Changes:
- routers/stats.py: Group films by title in _build_stats_payload, compute rewatch details (ratings, days between, rating change flag), add rewatch_patterns key
- templates/stats.html: Add "Rewatches" panel HTML and JS renderer (renderLists)
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Diffstat (limited to 'main.py')
0 files changed, 0 insertions, 0 deletions
