Merge pull request 'Auto-commit local changes before build (2026-01-03 13:29:09)' (#18) from v20260103-05-reports-date-import-fix into main

Reviewed-on: #18
This commit is contained in:
Ivo Oskamp 2026-01-06 09:26:18 +01:00
commit 544ce24fdb
3 changed files with 9 additions and 1 deletions

View File

@ -1 +1 @@
v20260103-04-reports-default-period-fix
v20260103-05-reports-date-import-fix

View File

@ -1,4 +1,5 @@
from .routes_shared import * # noqa: F401,F403
from datetime import date, timedelta
def get_default_report_period():
"""Return default report period (last 7 days)."""

View File

@ -28,6 +28,13 @@
- Fixed a NameError on the Reports page by adding the missing get_default_report_period helper.
- Ensured a default reporting period is always available to prevent the Reports view from failing during load.
---
## v20260103-05-reports-date-import-fix
- Fixed a crash on the Reports page caused by missing datetime imports.
- Added the required `date` and `timedelta` imports to prevent a NameError when determining the default report period.
================================================================================================================================================