Skip to content

Commit

Permalink
Fix bug: call unique() on result, not select stmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed Apr 12, 2024
1 parent 8596522 commit bf60ea9
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 bf60ea9

Please sign in to comment.