fix: Phase 0b - map_focus_to_score_components English keys
This commit is contained in:
parent
919eae6053
commit
289b132b8f
|
|
@ -56,34 +56,52 @@ def get_focus_area_category(focus_area_id: str) -> Optional[str]:
|
||||||
def map_focus_to_score_components() -> Dict[str, str]:
|
def map_focus_to_score_components() -> Dict[str, str]:
|
||||||
"""
|
"""
|
||||||
Map focus areas to score components
|
Map focus areas to score components
|
||||||
Returns: {'körpergewicht': 'body', 'proteinzufuhr': 'nutrition', ...}
|
Keys match focus_area_definitions.key (English lowercase)
|
||||||
|
Returns: {'weight_loss': 'body', 'strength': 'activity', ...}
|
||||||
"""
|
"""
|
||||||
return {
|
return {
|
||||||
# Körper-Kategorie → body_progress_score
|
# Body Composition → body_progress_score
|
||||||
'körpergewicht': 'body',
|
'weight_loss': 'body',
|
||||||
'körperfett': 'body',
|
'muscle_gain': 'body',
|
||||||
'muskelmasse': 'body',
|
'body_recomposition': 'body',
|
||||||
'umfänge': 'body',
|
|
||||||
|
|
||||||
# Ernährung-Kategorie → nutrition_score
|
# Training - Strength → activity_score
|
||||||
'ernährung_basis': 'nutrition',
|
'strength': 'activity',
|
||||||
'ernährung_makros': 'nutrition',
|
'strength_endurance': 'activity',
|
||||||
'proteinzufuhr': 'nutrition',
|
'power': 'activity',
|
||||||
'kalorienbilanz': 'nutrition',
|
|
||||||
|
|
||||||
# Aktivität-Kategorie → activity_score
|
# Training - Mobility → activity_score
|
||||||
'kraftaufbau': 'activity',
|
'flexibility': 'activity',
|
||||||
'cardio': 'activity',
|
'mobility': 'activity',
|
||||||
'bewegungsumfang': 'activity',
|
|
||||||
'trainingsqualität': 'activity',
|
|
||||||
'ability_balance': 'activity',
|
|
||||||
|
|
||||||
# Recovery-Kategorie → recovery_score
|
# Endurance → activity_score (could also map to health)
|
||||||
'schlaf': 'recovery',
|
'aerobic_endurance': 'activity',
|
||||||
'erholung': 'recovery',
|
'anaerobic_endurance': 'activity',
|
||||||
'ruhetage': 'recovery',
|
'cardiovascular_health': 'health',
|
||||||
|
|
||||||
# Vitalwerte-Kategorie → health_risk_score
|
# Coordination → activity_score
|
||||||
|
'balance': 'activity',
|
||||||
|
'reaction': 'activity',
|
||||||
|
'rhythm': 'activity',
|
||||||
|
'coordination': 'activity',
|
||||||
|
|
||||||
|
# Mental → recovery_score (mental health is part of recovery)
|
||||||
|
'stress_resistance': 'recovery',
|
||||||
|
'concentration': 'recovery',
|
||||||
|
'willpower': 'recovery',
|
||||||
|
'mental_health': 'recovery',
|
||||||
|
|
||||||
|
# Recovery → recovery_score
|
||||||
|
'sleep_quality': 'recovery',
|
||||||
|
'regeneration': 'recovery',
|
||||||
|
'rest': 'recovery',
|
||||||
|
|
||||||
|
# Health → health
|
||||||
|
'metabolic_health': 'health',
|
||||||
|
'blood_pressure': 'health',
|
||||||
|
'hrv': 'health',
|
||||||
|
'general_health': 'health',
|
||||||
|
}
|
||||||
'herzgesundheit': 'health',
|
'herzgesundheit': 'health',
|
||||||
'blutdruck': 'health',
|
'blutdruck': 'health',
|
||||||
'vo2max': 'health',
|
'vo2max': 'health',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user