mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-29 20:01:50 -05:00
fix first paginate method
This commit is contained in:
@@ -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()
|
||||
select(func.count()).select_from(inbound_sms_query.subquery()).scalar() or 0
|
||||
)
|
||||
|
||||
while offset < inbound_sms_count:
|
||||
|
||||
Reference in New Issue
Block a user