From 358f5c9019640b99a8b33cba6ecb9f06017cc771 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 22 Sep 2023 10:46:36 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(endpoints.py):=20fix=20inden?= =?UTF-8?q?tation=20issue=20in=20process=5Fflow=20function=20and=20assign?= =?UTF-8?q?=20session=5Fid=20correctly=20when=20result=20is=20a=20dictiona?= =?UTF-8?q?ry?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/api/v1/endpoints.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/backend/langflow/api/v1/endpoints.py b/src/backend/langflow/api/v1/endpoints.py index 57b0c6958..e4e22bf7d 100644 --- a/src/backend/langflow/api/v1/endpoints.py +++ b/src/backend/langflow/api/v1/endpoints.py @@ -153,9 +153,11 @@ async def process_flow( ) if isinstance(result, dict) and "result" in result: task_result = result["result"] + session_id = result["session_id"] else: task_result = result.result - session_id = result.session_id + + session_id = result.session_id else: task_id, task = await task_service.launch_task( process_graph_cached_task