fix: SQL error - direction is in goals table, not goal_type_definitions
This commit is contained in:
parent
217990d417
commit
fac8820208
|
|
@ -669,9 +669,9 @@ def get_goals_grouped(session: dict = Depends(require_auth)):
|
||||||
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.on_track, g.projection_date,
|
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, g.direction,
|
||||||
gt.label_de, gt.icon, gt.category as type_category,
|
gt.label_de, gt.icon, gt.category as type_category,
|
||||||
gt.source_table, gt.source_column, gt.direction
|
gt.source_table, gt.source_column
|
||||||
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
|
WHERE g.profile_id = %s
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user