From 5f5bf06ab2e3f80250f2236e0338017da1b41f37 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Tue, 20 Jun 2023 16:11:33 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(flows.py):=20fix=20condition?= =?UTF-8?q?al=20statement=20in=20update=5Fflow=20function=20The=20conditio?= =?UTF-8?q?nal=20statement=20in=20the=20update=5Fflow=20function=20was=20i?= =?UTF-8?q?ncorrect.=20The=20if=20statement=20was=20checking=20for=20the?= =?UTF-8?q?=20opposite=20of=20what=20was=20intended.=20The=20fix=20changes?= =?UTF-8?q?=20the=20if=20statement=20to=20check=20for=20the=20correct=20co?= =?UTF-8?q?ndition.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/api/v1/flows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/langflow/api/v1/flows.py b/src/backend/langflow/api/v1/flows.py index c440fc18b..4e000a128 100644 --- a/src/backend/langflow/api/v1/flows.py +++ b/src/backend/langflow/api/v1/flows.py @@ -61,7 +61,7 @@ def update_flow( if not db_flow: raise HTTPException(status_code=404, detail="Flow not found") flow_data = flow.dict(exclude_unset=True) - if not settings.remove_api_keys: + if settings.remove_api_keys: flow_data = remove_api_keys(flow_data) for key, value in flow_data.items(): setattr(db_flow, key, value)