From f12f6b9b63ffc2c1809ca3acaaf551f1430161cb Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Fri, 18 Oct 2024 10:27:29 -0700 Subject: [PATCH] fix first paginate method --- app/dao/inbound_sms_dao.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dao/inbound_sms_dao.py b/app/dao/inbound_sms_dao.py index 8925b9b72..690b007bc 100644 --- a/app/dao/inbound_sms_dao.py +++ b/app/dao/inbound_sms_dao.py @@ -85,7 +85,7 @@ def _insert_inbound_sms_history(subquery, query_limit=10000): ).where(InboundSms.id.in_(subquery_select)) inbound_sms_count = db.session.execute( - select(func.count()).select_from(inbound_sms_query.subquery()).scalar_one_or_none() or 0 + select(func.count()).select_from(inbound_sms_query.subquery()).scalars().one_or_none() or 0 ) while offset < inbound_sms_count: