diff --git a/lib/tool_shed/metadata/repository_metadata_manager.py b/lib/tool_shed/metadata/repository_metadata_manager.py index 03c5562d5c02..2bc5e756a0d0 100644 --- a/lib/tool_shed/metadata/repository_metadata_manager.py +++ b/lib/tool_shed/metadata/repository_metadata_manager.py @@ -1097,7 +1097,7 @@ def get_current_repositories(session, order=False): def get_filtered_repositories(session, repo_ids, order): - stmt = select(Repository).where(Repository.in_(repo_ids)) + stmt = select(Repository).where(Repository.id.in_(repo_ids)) if order: stmt = stmt.order_by(Repository.name, Repository.user_id) return session.scalars(stmt)