From 9e95fd84162330ce4c9fec3c361b51fc5d573e91 Mon Sep 17 00:00:00 2001 From: Lars Date: Fri, 27 Mar 2026 12:45:03 +0100 Subject: [PATCH] fix: get_goals_grouped - remove is_active check (column doesn't exist) 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 --- 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 a45ff7e..c607636 100644 --- a/backend/routers/goals.py +++ b/backend/routers/goals.py @@ -541,7 +541,7 @@ def get_goals_grouped(session: dict = Depends(require_auth)): gt.label_de, gt.icon, gt.category as type_category FROM goals g 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 """, (pid,))