Two critical fixes for placeholder resolution: 1. Missing import in activity_metrics.py: - Added 'import statistics' at module level - Fixes calculate_monotony_score() and calculate_strain_score() - Error: NameError: name 'statistics' is not defined 2. Outdated focus_weights function in body_metrics.py: - Changed from goal_utils.get_focus_weights (uses old focus_areas table) - To data_layer.scores.get_user_focus_weights (uses new v2.0 system) - Fixes calculate_body_progress_score() - Error: UndefinedTable: relation "focus_areas" does not exist These were causing many placeholders to fail silently. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| activity_metrics.py | ||
| body_metrics.py | ||
| correlations.py | ||
| health_metrics.py | ||
| nutrition_metrics.py | ||
| recovery_metrics.py | ||
| scores.py | ||
| utils.py | ||