Merge branch 'db' of github.com:logspace-ai/langflow into db

This commit is contained in:
gustavoschaedler 2023-06-16 23:07:55 +01:00
commit beea12934b
2 changed files with 1 additions and 2 deletions

View file

@ -1,4 +1,3 @@
from fastapi import FastAPI from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware from fastapi.middleware.cors import CORSMiddleware

View file

@ -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 # 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 # 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"] nodes = graph_data["nodes"]
else: else:
nodes = graph_data["data"]["nodes"] nodes = graph_data["data"]["nodes"]