Skip to content

Commit

Permalink
Merge pull request #17981 from jdavcs/24.0_unique_fix
Browse files Browse the repository at this point in the history
[24.0] Backport: Fix bug: call unique() on result, not select stmt
  • Loading branch information
jdavcs authored Apr 12, 2024
2 parents 3a35c82 + bf60ea9 commit eb472db
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/galaxy/tools/actions/upload_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit eb472db

Please sign in to comment.