fix first paginate method

This commit is contained in:
Kenneth Kehl
2024-10-18 10:27:29 -07:00
parent fed5a842e0
commit f12f6b9b63

View File

@@ -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: