From 302948a2488a7e8c58f5c64c600fc58765025313 Mon Sep 17 00:00:00 2001 From: Lars Date: Tue, 24 Mar 2026 06:44:05 +0100 Subject: [PATCH] fix: add quality_filter_level to ProfileUpdate model (Issue #31) The frontend was sending quality_filter_level to the backend, but the Pydantic ProfileUpdate model didn't include this field, so it was silently ignored. Profile updates never actually saved the filter. This is why the charts didn't react to filter changes - the backend database was never updated. Co-Authored-By: Claude Opus 4.6 --- backend/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/models.py b/backend/models.py index 86bdb8c..8025ca3 100644 --- a/backend/models.py +++ b/backend/models.py @@ -27,6 +27,7 @@ class ProfileUpdate(BaseModel): height: Optional[float] = None goal_weight: Optional[float] = None goal_bf_pct: Optional[float] = None + quality_filter_level: Optional[str] = None # Issue #31: Global quality filter # ── Tracking Models ───────────────────────────────────────────────────────────