From bf60ea9fc78c08e1c0d3291bd31dcfd91aa09775 Mon Sep 17 00:00:00 2001 From: John Davis Date: Fri, 9 Feb 2024 16:07:03 -0500 Subject: [PATCH] Fix bug: call unique() on result, not select stmt --- lib/galaxy/tools/actions/upload_common.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/galaxy/tools/actions/upload_common.py b/lib/galaxy/tools/actions/upload_common.py index a345abde954a..a5460c08efa0 100644 --- a/lib/galaxy/tools/actions/upload_common.py +++ b/lib/galaxy/tools/actions/upload_common.py @@ -441,7 +441,6 @@ def active_folders(trans, folder): select(LibraryFolder) .filter_by(parent=folder, deleted=False) .options(joinedload(LibraryFolder.actions)) - .unique() .order_by(LibraryFolder.name) ) - return trans.sa_session.scalars(stmt).all() + return trans.sa_session.scalars(stmt).unique().all()