mitai-jinkendo/backend/data_layer
Lars 61a5bb39ae
All checks were successful
Deploy Development / deploy (push) Successful in 59s
Build Test / pytest-backend (push) Successful in 4s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 16s
feat: Update nutrition metrics and energy balance calculations
- Introduced a single TDEE calculation based on current weight, replacing the fixed 2500 kcal value.
- Updated `get_energy_balance_data` to use daily totals for intake calculations and improved energy balance logic.
- Enhanced `get_nutrition_average_data` to calculate averages over calendar days instead of raw log entries.
- Adjusted placeholder resolution to ensure consistent metadata usage across requests.
- Fixed issues in the charts router to reflect the new energy balance logic and TDEE calculations.

These changes improve the accuracy of nutritional assessments and streamline data handling in the application.
2026-04-11 19:04:27 +02:00
..
training_profile feat: Add personal reference values management in settings and API 2026-04-06 19:45:06 +02:00
__init__.py feat: Update reference values and introduce pilot visualization module 2026-04-07 10:15:13 +02:00
activity_metrics.py fix: add missing statistics import and update focus_weights function 2026-03-28 20:46:21 +01:00
body_metrics.py fix: add missing statistics import and update focus_weights function 2026-03-28 20:46:21 +01:00
correlations.py fix: Phase 0c - update all in-function imports to use data_layer 2026-03-28 20:36:50 +01:00
health_metrics.py feat: Phase 0c - health_metrics.py module complete 2026-03-28 19:15:31 +01:00
nutrition_metrics.py feat: Update nutrition metrics and energy balance calculations 2026-04-11 19:04:27 +02:00
recovery_metrics.py fix: Phase 0c - update all in-function imports to use data_layer 2026-03-28 20:36:50 +01:00
reference_values.py feat: Update reference values and introduce pilot visualization module 2026-04-07 10:15:13 +02:00
scores.py fix: Phase 0c - update all in-function imports to use data_layer 2026-03-28 20:36:50 +01:00
utils.py fix: correct confidence thresholds for 30-89 day range 2026-03-28 21:03:22 +01:00