Unverified Commit eb472dbf authored by John Davis's avatar John Davis Committed by GitHub
Browse files

Merge pull request #17981 from jdavcs/24.0_unique_fix

[24.0] Backport: Fix bug: call unique() on result, not select stmt
parents 3a35c820 bf60ea9f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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()