Skip to content

Commit

Permalink
Merge pull request #18274 from jdavcs/241_result_mappings
Browse files Browse the repository at this point in the history
[24.1] Fix handler: access to result row items changed in SA2.0
  • Loading branch information
martenson authored May 30, 2024
2 parents 4dda05f + 534f933 commit 8f4029c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/jobs/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 8f4029c

Please sign in to comment.