Petru Paler
86dc3a13d2
Deploy / deploy (push) Successful in 2m37s
Dynamic window metrics for cold start scenarios
...
Calculate metrics from first relevant event to now (capped at 30 days)
instead of a fixed 30-day window. This fixes inaccurate metrics for new
users who have only a few days of data.
Changes:
- Add _get_first_event_ts() and _calculate_window() helpers to stats.py
- Add window_days field to EggStats dataclass
- Update routes/eggs.py and routes/feed.py to use dynamic window
- Update templates to display "N-day avg" instead of "30-day avg"
- Use ceiling division for window_days to ensure first event is included
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-10 19:06:00 +00:00
..
2025-12-27 17:37:16 +00:00
2025-12-31 20:08:20 +00:00
2025-12-27 18:25:28 +00:00
2026-01-02 10:35:39 +00:00
2025-12-31 18:21:14 +00:00
2025-12-31 18:21:14 +00:00
2026-01-03 11:46:04 +00:00
2025-12-27 17:58:29 +00:00
2025-12-27 17:58:29 +00:00
2025-12-29 18:44:13 +00:00
2025-12-29 19:20:33 +00:00
2025-12-30 14:31:03 +00:00
2026-01-10 19:06:00 +00:00
2025-12-29 18:44:13 +00:00
2025-12-29 16:03:17 +00:00
2026-01-09 06:37:31 +00:00
2026-01-09 06:19:30 +00:00
2025-12-28 07:35:05 +00:00
2026-01-05 15:20:26 +00:00
2026-01-05 15:20:26 +00:00
2025-12-30 15:15:06 +00:00
2025-12-28 07:25:18 +00:00
2025-12-28 19:51:28 +00:00
2025-12-28 07:25:18 +00:00
2025-12-27 18:25:28 +00:00
2025-12-28 18:59:24 +00:00
2025-12-27 21:37:19 +00:00
2025-12-28 19:51:28 +00:00
2025-12-27 19:18:08 +00:00
2025-12-29 07:02:19 +00:00
2025-12-29 06:52:23 +00:00
2026-01-03 11:03:47 +00:00
2025-12-29 07:02:19 +00:00
2025-12-28 18:47:11 +00:00
2025-12-31 14:35:27 +00:00
2025-12-28 07:25:18 +00:00
2025-12-30 20:14:12 +00:00
2025-12-30 14:59:13 +00:00
2025-12-28 07:25:18 +00:00
2025-12-30 14:59:13 +00:00
2025-12-30 14:59:13 +00:00
2026-01-02 13:01:07 +00:00
2025-12-29 19:20:33 +00:00
2025-12-29 07:51:20 +00:00
2025-12-31 17:48:16 +00:00
2025-12-29 08:11:36 +00:00
2025-12-31 17:48:16 +00:00
2025-12-29 09:40:34 +00:00
2025-12-29 09:08:13 +00:00
2026-01-10 19:06:00 +00:00
2026-01-10 19:06:00 +00:00
2026-01-01 07:59:40 +00:00
2026-01-03 09:10:32 +00:00
2025-12-30 20:14:12 +00:00
2026-01-01 07:59:40 +00:00
2025-12-29 19:52:15 +00:00
2026-01-05 15:20:26 +00:00
2026-01-10 16:56:08 +00:00
2026-01-02 10:35:39 +00:00
2026-01-01 20:03:34 +00:00
2026-01-08 21:10:09 +00:00
2025-12-29 20:35:57 +00:00
2025-12-31 17:48:16 +00:00
2026-01-03 11:46:04 +00:00
2026-01-08 21:10:09 +00:00
2025-12-31 14:16:12 +00:00
2025-12-30 14:59:13 +00:00
2025-12-31 17:48:16 +00:00
2025-12-29 20:35:57 +00:00