From 534f933861211c51ab7544415eb8204a49beb847 Mon Sep 17 00:00:00 2001 From: John Davis Date: Thu, 30 May 2024 15:19:38 -0400 Subject: [PATCH] Fix SA20 bug --- lib/galaxy/jobs/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/jobs/handler.py b/lib/galaxy/jobs/handler.py index f3965abb59bf..0213a797aab4 100644 --- a/lib/galaxy/jobs/handler.py +++ b/lib/galaxy/jobs/handler.py @@ -999,7 +999,7 @@ def __cache_total_job_count_per_destination(self): .where(and_(model.Job.table.c.state.in_((model.Job.states.QUEUED, model.Job.states.RUNNING)))) .group_by(model.Job.table.c.destination_id) ) - for row in result: + for row in result.mappings(): self.total_job_count_per_destination[row["destination_id"]] = row["job_count"] def get_total_job_count_per_destination(self):