Skip to content

Commit

Permalink
Fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed Mar 11, 2024
1 parent 728bbeb commit c55aee0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/galaxy/datatypes/dataproviders/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/galaxy/managers/libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit c55aee0

Please sign in to comment.