Auto-commit local changes before build (2026-01-03 13:24:32) #17
@ -1 +1 @@
|
|||||||
v20260103-03-reports-loading-fix
|
v20260103-04-reports-default-period-fix
|
||||||
|
|||||||
@ -1,5 +1,12 @@
|
|||||||
from .routes_shared import * # noqa: F401,F403
|
from .routes_shared import * # noqa: F401,F403
|
||||||
|
|
||||||
|
def get_default_report_period():
|
||||||
|
"""Return default report period (last 7 days)."""
|
||||||
|
period_end = date.today()
|
||||||
|
period_start = period_end - timedelta(days=7)
|
||||||
|
return period_start, period_end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def _safe_json_list(value):
|
def _safe_json_list(value):
|
||||||
if not value:
|
if not value:
|
||||||
|
|||||||
@ -21,6 +21,14 @@
|
|||||||
- Fixed customer selection components on the Reports pages that could remain in a loading state.
|
- Fixed customer selection components on the Reports pages that could remain in a loading state.
|
||||||
- Improved robustness of report data handling to prevent rendering issues caused by invalid or missing customer references.
|
- Improved robustness of report data handling to prevent rendering issues caused by invalid or missing customer references.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## v20260103-04-reports-default-period-fix
|
||||||
|
|
||||||
|
- 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.
|
||||||
|
|
||||||
|
|
||||||
================================================================================================================================================
|
================================================================================================================================================
|
||||||
|
|
||||||
## v0.1.15
|
## v0.1.15
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user