From 9ff68eef82150bd0addf8a5d2e05d92de4f2c84c Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 16 Jun 2023 19:01:41 -0300 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=94=A5=20chore(main.py):=20remove=20u?= =?UTF-8?q?nnecessary=20newline=20at=20the=20beginning=20of=20the=20file?= =?UTF-8?q?=20The=20only=20change=20in=20this=20commit=20is=20the=20remova?= =?UTF-8?q?l=20of=20an=20unnecessary=20newline=20at=20the=20beginning=20of?= =?UTF-8?q?=20the=20file.=20This=20improves=20the=20code's=20readability?= =?UTF-8?q?=20and=20consistency.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/main.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/backend/langflow/main.py b/src/backend/langflow/main.py index 1989aad01..ad3217eb5 100644 --- a/src/backend/langflow/main.py +++ b/src/backend/langflow/main.py @@ -1,4 +1,3 @@ - from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware 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 2/2] =?UTF-8?q?=F0=9F=90=9B=20fix(process.py):=20fix=20con?= =?UTF-8?q?ditional=20statement=20to=20check=20if=20"nodes"=20is=20in=20gr?= =?UTF-8?q?aph=5Fdata=20The=20conditional=20statement=20was=20checking=20i?= =?UTF-8?q?f=20"nodes"=20is=20in=20"graph=5Fdata['data']"=20instead=20of?= =?UTF-8?q?=20checking=20if=20"nodes"=20is=20in=20"graph=5Fdata".=20This?= =?UTF-8?q?=20fix=20ensures=20that=20the=20correct=20data=20is=20processed?= =?UTF-8?q?=20and=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"]