debug: show ALL goals with dates, not just first
This commit is contained in:
parent
068a8e7a88
commit
b7e7817392
|
|
@ -378,14 +378,10 @@ def list_goals(session: dict = Depends(require_auth)):
|
||||||
# Serialize date objects to ISO format strings
|
# Serialize date objects to ISO format strings
|
||||||
goals = serialize_dates(goals)
|
goals = serialize_dates(goals)
|
||||||
|
|
||||||
# Debug: Show what's being returned
|
# Debug: Show ALL goals with their dates
|
||||||
print(f"[DEBUG] Returning {len(goals)} goals. First goal after serialization:")
|
print(f"[DEBUG] Returning {len(goals)} goals after serialization:")
|
||||||
if goals:
|
for g in goals:
|
||||||
first = goals[0]
|
print(f" Goal {g.get('id')}: goal_type={g.get('goal_type')}, start_date={g.get('start_date')}, target_date={g.get('target_date')}")
|
||||||
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
|
return goals
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user