Mitja Horvat fdfced6901 fix: reset budgets using state file mtime when server was stopped across the daily reset
The old per-device last_check timestamp was only persisted while a
device was consuming budget, so a stop/restart across days left stale
budgets. Check the state file mtime instead: if it predates today's 7 AM
and we're past 7 AM, the server was offline during the daily reset, so
give every device a fresh budget. Also drops the redundant 2-minute
reset window and the persisted last_check field.
2026-09-02 16:21:47 +02:00
2026-09-02 16:03:46 +02:00
2026-06-09 09:45:55 +02:00
2026-06-09 09:45:55 +02:00
Description
Parental Control
151 KiB
Languages
Python 100%