Root cause: All 3 score functions returned None because they queried German focus area keys that don't exist in database (migration 031 uses English keys). Changes: - body_progress_score: körpergewicht/körperfett/muskelmasse → weight_loss/muscle_gain/body_recomposition - nutrition_score: ernährung_basis/proteinzufuhr/kalorienbilanz → protein_intake/calorie_balance/macro_consistency/meal_timing/hydration - activity_score: kraftaufbau/cardio/bewegungsumfang/trainingsqualität → strength/aerobic_endurance/flexibility/rhythm/coordination (grouped) Result: Scores now calculate correctly with existing focus area weights. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| activity_metrics.py | ||
| body_metrics.py | ||
| correlation_metrics.py | ||
| nutrition_metrics.py | ||
| recovery_metrics.py | ||
| scores.py | ||