fix: get_goals_grouped - remove non-existent linear_projection column
All checks were successful
Deploy Development / deploy (push) Successful in 52s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 15s

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 <noreply@anthropic.com>
This commit is contained in:
Lars 2026-03-27 12:41:06 +01:00
parent 448d19b840
commit 1c00238414

View File

@ -536,7 +536,7 @@ def get_goals_grouped(session: dict = Depends(require_auth)):
SELECT SELECT
g.id, g.goal_type, g.target_value, g.current_value, g.start_value, 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.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, g.created_at, g.updated_at,
gt.label_de, gt.icon, gt.category as type_category gt.label_de, gt.icon, gt.category as type_category
FROM goals g FROM goals g