From 531ce64eeb5089a348262b3c0fb9beb1a0df3c66 Mon Sep 17 00:00:00 2001 From: Logan Date: Mon, 27 Apr 2026 00:58:05 -0400 Subject: [PATCH] Fix system AI flag bug --- drb-c2-core/app/routers/systems.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drb-c2-core/app/routers/systems.py b/drb-c2-core/app/routers/systems.py index 6783cfc..4231316 100644 --- a/drb-c2-core/app/routers/systems.py +++ b/drb-c2-core/app/routers/systems.py @@ -73,7 +73,7 @@ async def update_system_ai_flags(system_id: str, body: AiFlagsBody): raise HTTPException(404, f"System '{system_id}' not found.") current: dict = existing.get("ai_flags") or {} - for field, value in body.model_dump(exclude_unset=False).items(): + for field, value in body.model_dump(exclude_unset=True).items(): if value is None: current.pop(field, None) # clear override → inherit global else: