diff --git a/backend/main.py b/backend/main.py index ecccfd0..fd54af7 100644 --- a/backend/main.py +++ b/backend/main.py @@ -1599,7 +1599,7 @@ Datumsformat: YYYY-MM-DD "email": prof.get('email'), "sex": prof.get('sex'), "height": float(prof['height']) if prof.get('height') else None, - "birth_year": int(prof['dob'][:4]) if prof.get('dob') else None, + "birth_year": prof['dob'].year if prof.get('dob') else None, "goal_weight": float(prof['goal_weight']) if prof.get('goal_weight') else None, "goal_bf_pct": float(prof['goal_bf_pct']) if prof.get('goal_bf_pct') else None, "avatar_color": prof.get('avatar_color'),