fix: Phase 0c - update all in-function imports to use data_layer
Critical bug fix: In-function imports were still referencing calculations/ module. This caused all calculated placeholders to fail silently. Fixed imports in: - activity_metrics.py: calculate_activity_score (scores import) - recovery_metrics.py: calculate_recent_load_balance_3d (activity_metrics import) - scores.py: 12 function imports (body/nutrition/activity/recovery metrics) - correlations.py: 11 function imports (scores, body, nutrition, activity, recovery metrics) All data_layer modules now reference each other correctly. Placeholders should resolve properly now. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
befa060671
commit
5b7d7ec3bb
4 files changed
+34
-34
No files matched your search
@@ -742,7 +742,7 @@ def calculate_sleep_regularity_proxy(profile_id: str) -> Optional[float]:
|
||||
|
||||
def calculate_recent_load_balance_3d(profile_id: str) -> Optional[int]:
|
||||
"""Calculate proxy internal load last 3 days"""
|
||||
from calculations.activity_metrics import calculate_proxy_internal_load_7d
|
||||
from data_layer.activity_metrics import calculate_proxy_internal_load_7d
|
||||
|
||||
with get_db() as conn:
|
||||
cur = get_cursor(conn)
|
||||
|
||||
Reference in new issue
Block a user