minor frontend changes

This commit is contained in:
2026-07-13 09:49:10 -04:00
parent 96a6309ff6
commit a772e47f42
4 changed files with 25 additions and 6 deletions
+2
View File
@@ -445,10 +445,12 @@ def get_schedule_week(start: str | None = None) -> dict[str, Any]:
week_start_date = datetime.strptime(week_start, "%Y-%m-%d").date()
rows = db.get_schedule_week(week_start, DB_PATH)
all_rows = db.get_schedule_rows_for_latest_version(DB_PATH)
completion_date = max((row.scheduled_date for row in all_rows), default=None)
holiday_dates = db.list_holidays(DB_PATH)
return {
"start_date": week_start,
"items": [_serialize_schedule_row(row) for row in rows],
"completion_date": completion_date,
"windows": _build_schedule_windows(week_start_date, all_rows, holiday_dates),
}