mitai-jinkendo/backend/calculations
Lars 6f20915d73
All checks were successful
Deploy Development / deploy (push) Successful in 46s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 13s
fix: Phase 0b - body_progress_score uses correct column name
Bug: Filtered goals by g.get('type_key') but goals table has 'goal_type' column.
Result: weight_goals was always empty → _score_weight_trend returned None.

Fix: Changed 'type_key' → 'goal_type' (matches goals table schema).

Verified: Migration 022 defines goal_type column, not type_key.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-28 11:16:29 +01:00
..
__init__.py feat: Phase 0b - Calculation Engine for 120+ Goal-Aware Placeholders 2026-03-28 07:20:40 +01:00
activity_metrics.py fix: Phase 0b - score functions use English focus area keys 2026-03-28 10:59:37 +01:00
body_metrics.py fix: Phase 0b - body_progress_score uses correct column name 2026-03-28 11:16:29 +01:00
correlation_metrics.py fix: Phase 0b - correct all SQL column names in calculation engine 2026-03-28 08:28:20 +01:00
nutrition_metrics.py fix: Phase 0b - replace non-existent get_goals_by_type import 2026-03-28 11:04:28 +01:00
recovery_metrics.py fix: Phase 0b - fix remaining calculation bugs from log analysis 2026-03-28 08:50:55 +01:00
scores.py feat: Phase 0b - add nutrition focus areas to score mapping 2026-03-28 10:20:46 +01:00