Goals -System refactored - Platzhaltersystem enhanced (als draft) #53
|
|
@ -542,7 +542,7 @@ def get_active_goals(profile_id: str) -> List[Dict]:
|
||||||
cur = get_cursor(conn)
|
cur = get_cursor(conn)
|
||||||
cur.execute("""
|
cur.execute("""
|
||||||
SELECT id, goal_type, name, target_value, target_date,
|
SELECT id, goal_type, name, target_value, target_date,
|
||||||
current_value, progress_pct, status, is_primary
|
current_value, start_value, progress_pct, status, is_primary
|
||||||
FROM goals
|
FROM goals
|
||||||
WHERE profile_id = %s
|
WHERE profile_id = %s
|
||||||
AND status IN ('active', 'in_progress')
|
AND status IN ('active', 'in_progress')
|
||||||
|
|
@ -558,7 +558,7 @@ def get_goal_by_id(goal_id: str) -> Optional[Dict]:
|
||||||
cur = get_cursor(conn)
|
cur = get_cursor(conn)
|
||||||
cur.execute("""
|
cur.execute("""
|
||||||
SELECT id, profile_id, goal_type, target_value, target_date,
|
SELECT id, profile_id, goal_type, target_value, target_date,
|
||||||
current_value, progress_pct, status, is_primary
|
current_value, start_value, progress_pct, status, is_primary
|
||||||
FROM goals
|
FROM goals
|
||||||
WHERE id = %s
|
WHERE id = %s
|
||||||
""", (goal_id,))
|
""", (goal_id,))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user