fix: get_goals_grouped - remove is_active check (column doesn't exist)
All checks were successful
Deploy Development / deploy (push) Successful in 44s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 13s

goals table doesn't have is_active column.
Removed AND g.is_active = true from WHERE clause.

Fixes: psycopg2.errors.UndefinedColumn: column g.is_active does not exist

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Lars 2026-03-27 12:45:03 +01:00
parent ca4f722b47
commit 9e95fd8416

View File

@ -541,7 +541,7 @@ def get_goals_grouped(session: dict = Depends(require_auth)):
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
LEFT JOIN goal_type_definitions gt ON g.goal_type = gt.type_key LEFT JOIN goal_type_definitions gt ON g.goal_type = gt.type_key
WHERE g.profile_id = %s AND g.is_active = true WHERE g.profile_id = %s
ORDER BY g.category, g.priority ASC, g.created_at DESC ORDER BY g.category, g.priority ASC, g.created_at DESC
""", (pid,)) """, (pid,))