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:
commit
544ce24fdb
@ -1 +1 @@
|
|||||||
v20260103-04-reports-default-period-fix
|
v20260103-05-reports-date-import-fix
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
from .routes_shared import * # noqa: F401,F403
|
from .routes_shared import * # noqa: F401,F403
|
||||||
|
from datetime import date, timedelta
|
||||||
|
|
||||||
def get_default_report_period():
|
def get_default_report_period():
|
||||||
"""Return default report period (last 7 days)."""
|
"""Return default report period (last 7 days)."""
|
||||||
|
|||||||
@ -28,6 +28,13 @@
|
|||||||
- Fixed a NameError on the Reports page by adding the missing get_default_report_period helper.
|
- 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.
|
- 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.
|
||||||
|
|
||||||
|
|
||||||
================================================================================================================================================
|
================================================================================================================================================
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user