Goals -System refactored - Platzhaltersystem enhanced (als draft) #53
|
|
@ -386,7 +386,7 @@ def _score_weight_trend(profile_id: str) -> Optional[int]:
|
||||||
from goal_utils import get_active_goals
|
from goal_utils import get_active_goals
|
||||||
|
|
||||||
goals = get_active_goals(profile_id)
|
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:
|
if not weight_goals:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user