From 001c16bdcea3a0d414cea38bc1cbb8ae913283b7 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Fri, 18 Oct 2024 09:40:37 -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 1fa89d402..b0d3c8cb7 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([db.func.count()]).select_from(inbound_sms_query.subquery()).scalar_one() + select([func.count()]).select_from(inbound_sms_query.subquery()).scalar_one() ) while offset < inbound_sms_count: