fix: cartesian product warning in delete_folder (#4224)
This commit is contained in:
parent
20b3a6b46e
commit
c7fed78181
1 changed files with 1 additions and 1 deletions
|
|
@ -213,7 +213,7 @@ async def delete_folder(
|
||||||
current_user: CurrentActiveUser,
|
current_user: CurrentActiveUser,
|
||||||
):
|
):
|
||||||
try:
|
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:
|
if len(flows) > 0:
|
||||||
for flow in flows:
|
for flow in flows:
|
||||||
await cascade_delete_flow(session, flow)
|
await cascade_delete_flow(session, flow)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue