mitai-jinkendo/backend/calculations
Lars b230a03fdd
All checks were successful
Deploy Development / deploy (push) Successful in 50s
Build Test / lint-backend (push) Successful in 1s
Build Test / build-frontend (push) Successful in 14s
fix: Phase 0b - fix blood_pressure and top_goal_name bugs
Final bug fixes:
1. blood_pressure_log query - changed 'date' column to 'measured_at' (correct column for TIMESTAMP)
2. top_goal_name KeyError - added 'name' to SELECT in get_active_goals()
3. top_goal_name fallback - use goal_type if name is NULL

Changes:
- scores.py: Fixed blood_pressure_log query to use measured_at instead of date
- goal_utils.py: Added 'name' column to get_active_goals() SELECT
- placeholder_resolver.py: Added fallback to goal_type if name is None

These were the last 2 errors showing in logs. All major calculation bugs should now be fixed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-28 09:32:04 +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 - fix remaining calculation errors 2026-03-28 08:39:31 +01:00
body_metrics.py fix: Phase 0b - fix remaining calculation bugs from log analysis 2026-03-28 08:50:55 +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 - correct all SQL column names in calculation engine 2026-03-28 08:28:20 +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 fix: Phase 0b - fix blood_pressure and top_goal_name bugs 2026-03-28 09:32:04 +01:00