From 1c002384144c863ca9eeb7de32519d7a30e7fde7 Mon Sep 17 00:00:00 2001 From: Lars Date: Fri, 27 Mar 2026 12:41:06 +0100 Subject: [PATCH] fix: get_goals_grouped - remove non-existent linear_projection column Fixed SQL error: column g.linear_projection does not exist Replaced with: g.on_track, g.projection_date (actual columns) This was causing Internal Server Error on /api/goals/grouped Co-Authored-By: Claude Opus 4.6 --- backend/routers/goals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/routers/goals.py b/backend/routers/goals.py index 816ec5f..a45ff7e 100644 --- a/backend/routers/goals.py +++ b/backend/routers/goals.py @@ -536,7 +536,7 @@ def get_goals_grouped(session: dict = Depends(require_auth)): 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.name, g.description, g.progress_pct, g.linear_projection, + 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 FROM goals g