From f1ecfd5e094e5584e6e538f6ef3ac3f4db3a8094 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Thu, 17 Oct 2024 08:06:26 -0700 Subject: [PATCH] try scalars --- app/dao/jobs_dao.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/dao/jobs_dao.py b/app/dao/jobs_dao.py index f3106a821..bbf8606c5 100644 --- a/app/dao/jobs_dao.py +++ b/app/dao/jobs_dao.py @@ -237,7 +237,7 @@ def find_jobs_with_missing_rows(): .having(func.count(Notification.id) != Job.notification_count) ) - return db.session.execute(jobs_with_rows_missing).all() + return db.session.execute(jobs_with_rows_missing).scalar().all() def find_missing_row_for_job(job_id, job_size): @@ -258,4 +258,4 @@ def find_missing_row_for_job(job_id, job_size): ) .filter(Notification.job_row_number == None) # noqa ) - return db.session.execute(query).all() + return db.session.execute(query).scalars().all()