diff --git a/backend/calculations/body_metrics.py b/backend/calculations/body_metrics.py index 830dd1f..8a8d942 100644 --- a/backend/calculations/body_metrics.py +++ b/backend/calculations/body_metrics.py @@ -386,7 +386,7 @@ def _score_weight_trend(profile_id: str) -> Optional[int]: from goal_utils import get_active_goals goals = get_active_goals(profile_id) - weight_goals = [g for g in goals if g.get('type_key') == 'weight'] + weight_goals = [g for g in goals if g.get('goal_type') == 'weight'] if not weight_goals: return None