From fa4dd19ce65da4d98e18aeb3d15912dff1fe296a Mon Sep 17 00:00:00 2001 From: cristhianzl Date: Tue, 25 Jun 2024 16:32:17 -0300 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20(flows.py):=20rename=20loo?= =?UTF-8?q?p=20variable=20flow=20to=20=5Fflow=20to=20avoid=20shadowing=20a?= =?UTF-8?q?nd=20improve=20readability?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/base/langflow/api/v1/flows.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/base/langflow/api/v1/flows.py b/src/backend/base/langflow/api/v1/flows.py index 99c678151..54e4fc5e5 100644 --- a/src/backend/base/langflow/api/v1/flows.py +++ b/src/backend/base/langflow/api/v1/flows.py @@ -49,8 +49,8 @@ def create_flow( if flows: extract_number = re.compile(r"\((\d+)\)$") numbers = [] - for flow in flows: - result = extract_number.search(flow.name) + for _flow in flows: + result = extract_number.search(_flow.name) if result: numbers.append(int(result.groups(1)[0])) if numbers: