From fee54b817b873f8a2038cfb66e73399f9c30ccdd Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 16 Jun 2023 19:06:46 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(process.py):=20fix=20conditi?= =?UTF-8?q?onal=20statement=20to=20check=20if=20"nodes"=20is=20in=20graph?= =?UTF-8?q?=5Fdata=20The=20conditional=20statement=20was=20checking=20if?= =?UTF-8?q?=20"nodes"=20is=20in=20"graph=5Fdata['data']"=20instead=20of=20?= =?UTF-8?q?checking=20if=20"nodes"=20is=20in=20"graph=5Fdata".=20This=20fi?= =?UTF-8?q?x=20ensures=20that=20the=20correct=20data=20is=20processed=20an?= =?UTF-8?q?d=20avoids=20potential=20errors.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/processing/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/langflow/processing/process.py b/src/backend/langflow/processing/process.py index 7f20371bc..67ea91b40 100644 --- a/src/backend/langflow/processing/process.py +++ b/src/backend/langflow/processing/process.py @@ -179,7 +179,7 @@ def process_tweaks(graph_data: Dict, tweaks: Dict): # the dict of tweaks contains the name of a certain parameter and the value to be tweaked # We need to process the graph data to add the tweaks - if "data" not in graph_data or "nodes" in graph_data["data"]: + if "data" not in graph_data and "nodes" in graph_data: nodes = graph_data["nodes"] else: nodes = graph_data["data"]["nodes"]