Merge pull request #17981 from jdavcs/24.0_unique_fix

[24.0] Backport: Fix bug: call unique() on result, not select stmt
This commit is contained in:
John Davis
2024-04-12 17:22:20 -04:00
committed by GitHub
+1 -2
View File
@@ -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()