Goals -System refactored - Platzhaltersystem enhanced (als draft) #53

Merged
Lars merged 86 commits from develop into main 2026-03-31 11:46:48 +02:00
Showing only changes of commit 068a8e7a88 - Show all commits

View File

@ -378,6 +378,15 @@ def list_goals(session: dict = Depends(require_auth)):
# Serialize date objects to ISO format strings
goals = serialize_dates(goals)
# Debug: Show what's being returned
print(f"[DEBUG] Returning {len(goals)} goals. First goal after serialization:")
if goals:
first = goals[0]
print(f" id: {first.get('id')}")
print(f" start_date: {first.get('start_date')} (type: {type(first.get('start_date'))})")
print(f" target_date: {first.get('target_date')} (type: {type(first.get('target_date'))})")
print(f" Keys in goal: {list(first.keys())}")
return goals
except Exception as e: