mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05:00
try fixing pagination
This commit is contained in:
@@ -63,7 +63,7 @@ def dao_get_paginated_inbound_sms_for_service_for_public_api(
|
|||||||
.offset(offset)
|
.offset(offset)
|
||||||
)
|
)
|
||||||
paginated_items = db.session.execute(stmt).scalars().all()
|
paginated_items = db.session.execute(stmt).scalars().all()
|
||||||
total_items = db.session.execute(select(func.count())).where(*filters).scalar() or 0
|
total_items = db.session.execute(select(func.count()).where(*filters)).scalar() or 0
|
||||||
pagination = Pagination(paginated_items, page, page_size, total_items)
|
pagination = Pagination(paginated_items, page, page_size, total_items)
|
||||||
return pagination
|
return pagination
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user