From 5d42bdb4252101f159b5ef1b9bafc64e1afb7975 Mon Sep 17 00:00:00 2001 From: John Davis Date: Mon, 11 Mar 2024 19:30:23 -0400 Subject: [PATCH] Fix syntx for SA2.0 --- lib/galaxy/model/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/model/__init__.py b/lib/galaxy/model/__init__.py index 0291c08fbced..c9e6cd6ac7d5 100644 --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -7500,7 +7500,7 @@ def copy_tags_from(self, target_user, source_workflow): def invocation_counts(self) -> InvocationsStateCounts: sa_session = object_session(self) stmt = ( - select([WorkflowInvocation.state, func.count(WorkflowInvocation.state)]) + select(WorkflowInvocation.state, func.count(WorkflowInvocation.state)) .select_from(StoredWorkflow) .join(Workflow, Workflow.stored_workflow_id == StoredWorkflow.id) .join(WorkflowInvocation, WorkflowInvocation.workflow_id == Workflow.id)