From 217800086dbea8ac3580d9470c5672c6b5cf4839 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 12 Sep 2024 13:13:47 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- diracx-db/src/diracx/db/sql/task_queue/db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/diracx-db/src/diracx/db/sql/task_queue/db.py b/diracx-db/src/diracx/db/sql/task_queue/db.py index 537f128e7..e7e05c913 100644 --- a/diracx-db/src/diracx/db/sql/task_queue/db.py +++ b/diracx-db/src/diracx/db/sql/task_queue/db.py @@ -37,10 +37,10 @@ async def get_tq_infos_for_jobs( .join(JobsQueue, TaskQueues.TQId == JobsQueue.TQId) .where(JobsQueue.JobId.in_(job_ids)) ) - return set( + return { (int(row[0]), str(row[1]), str(row[2]), str(row[3])) for row in (await self.conn.execute(stmt)).all() - ) + } async def get_owner_for_task_queue(self, tq_id: int) -> dict[str, str]: """Get the owner and owner group for a task queue."""