From b5a0a303ba42a089782823e97fc8b6a097fd0cd4 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sun, 23 Jun 2024 01:58:04 -0300 Subject: [PATCH] feat: Add components_count variable to retrieve_vertices_order function This commit adds the `components_count` variable to the `retrieve_vertices_order` function in `chat.py`. The `components_count` variable is initialized as `None` and will be used for further processing within the function. --- src/backend/base/langflow/api/v1/chat.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/base/langflow/api/v1/chat.py b/src/backend/base/langflow/api/v1/chat.py index d6e54e99a..dc44d498b 100644 --- a/src/backend/base/langflow/api/v1/chat.py +++ b/src/backend/base/langflow/api/v1/chat.py @@ -86,6 +86,7 @@ async def retrieve_vertices_order( HTTPException: If there is an error checking the build status. """ start_time = time.perf_counter() + components_count = None try: flow_id_str = str(flow_id) # First, we need to check if the flow_id is in the cache