Auto-commit local changes before build (2026-01-03 13:24:32) #17

Merged
ivooskamp merged 1 commits from v20260103-04-reports-default-period-fix into main 2026-01-06 09:26:00 +01:00
3 changed files with 16 additions and 1 deletions
Showing only changes of commit 4654fac477 - Show all commits

View File

@ -1 +1 @@
v20260103-03-reports-loading-fix
v20260103-04-reports-default-period-fix

View File

@ -1,5 +1,12 @@
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):
if not value:

View File

@ -21,6 +21,14 @@
- 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.
---
## 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