From c55aee073ef28cca25cc2ebb947a721718138258 Mon Sep 17 00:00:00 2001 From: John Davis Date: Mon, 11 Mar 2024 16:24:06 -0400 Subject: [PATCH] Fix syntax --- lib/galaxy/datatypes/dataproviders/dataset.py | 2 +- lib/galaxy/managers/libraries.py | 2 +- lib/galaxy/model/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/galaxy/datatypes/dataproviders/dataset.py b/lib/galaxy/datatypes/dataproviders/dataset.py index 6c8075835393..1218349491ff 100644 --- a/lib/galaxy/datatypes/dataproviders/dataset.py +++ b/lib/galaxy/datatypes/dataproviders/dataset.py @@ -749,7 +749,7 @@ def __iter__(self): for i, row in enumerate(results): if i >= self.limit: break - yield list(row) + yield [val for val in row] else: yield diff --git a/lib/galaxy/managers/libraries.py b/lib/galaxy/managers/libraries.py index 2ed55907fe79..45c1c582a074 100644 --- a/lib/galaxy/managers/libraries.py +++ b/lib/galaxy/managers/libraries.py @@ -155,7 +155,7 @@ def list(self, trans, deleted: Optional[bool] = False) -> Tuple[Query, Dict[str, """ is_admin = trans.user_is_admin library_access_action = trans.app.security_agent.permitted_actions.LIBRARY_ACCESS.action - restricted_library_ids = set(get_library_ids(trans.sa_session, library_access_action)) + restricted_library_ids = {id for id in get_library_ids(trans.sa_session, library_access_action)} prefetched_ids = {"restricted_library_ids": restricted_library_ids} if is_admin: diff --git a/lib/galaxy/model/__init__.py b/lib/galaxy/model/__init__.py index 0291c08fbced..b1b276afe7ed 100644 --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -8493,7 +8493,7 @@ def poll_unhandled_workflow_ids(sa_session): .where(WorkflowInvocation.handler.is_(None)) .order_by(WorkflowInvocation.id.asc()) ) - return list(sa_session.scalars(stmt)) + return [wid for wid in sa_session.scalars(stmt)] @staticmethod def poll_active_workflow_ids(engine, scheduler=None, handler=None):