From cb72f342f9e91207bffff3a111bb28395ecc637e Mon Sep 17 00:00:00 2001 From: Lars Date: Sat, 28 Mar 2026 14:48:41 +0100 Subject: [PATCH] fix: add missing start_date and reached_date to grouped goals query Root cause: listGoalsGrouped() SELECT was missing g.start_date and g.reached_date Result: Frontend used grouped goals for editing, so start_date was undefined This is why target_date worked (it was in SELECT) but start_date didn't. --- backend/routers/goals.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/routers/goals.py b/backend/routers/goals.py index 862d941..8a7fb9a 100644 --- a/backend/routers/goals.py +++ b/backend/routers/goals.py @@ -663,7 +663,8 @@ def get_goals_grouped(session: dict = Depends(require_auth)): cur.execute(""" SELECT g.id, g.goal_type, g.target_value, g.current_value, g.start_value, - g.unit, g.target_date, g.status, g.is_primary, g.category, g.priority, + g.unit, g.start_date, g.target_date, g.reached_date, g.status, + g.is_primary, g.category, g.priority, g.name, g.description, g.progress_pct, g.on_track, g.projection_date, g.created_at, g.updated_at, gt.label_de, gt.icon, gt.category as type_category,