From c7fed78181a2a133917c1205c6fb3cdcf7d33559 Mon Sep 17 00:00:00 2001 From: dhlidongming Date: Thu, 31 Oct 2024 09:12:08 +0800 Subject: [PATCH] fix: cartesian product warning in delete_folder (#4224) --- src/backend/base/langflow/api/v1/folders.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/base/langflow/api/v1/folders.py b/src/backend/base/langflow/api/v1/folders.py index 1e14f2836208..9af22b96c153 100644 --- a/src/backend/base/langflow/api/v1/folders.py +++ b/src/backend/base/langflow/api/v1/folders.py @@ -213,7 +213,7 @@ async def delete_folder( current_user: CurrentActiveUser, ): try: - flows = session.exec(select(Flow).where(Flow.folder_id == folder_id, Folder.user_id == current_user.id)).all() + flows = session.exec(select(Flow).where(Flow.folder_id == folder_id, Flow.user_id == current_user.id)).all() if len(flows) > 0: for flow in flows: await cascade_delete_flow(session, flow)