mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
fix first paginate method
This commit is contained in:
@@ -60,10 +60,11 @@ def get_most_recent_inbound_sms_for_service(service_id):
|
|||||||
results = dao_get_paginated_most_recent_inbound_sms_by_user_number_for_service(
|
results = dao_get_paginated_most_recent_inbound_sms_by_user_number_for_service(
|
||||||
service_id, int(page), limit_days
|
service_id, int(page), limit_days
|
||||||
)
|
)
|
||||||
print(f"RESULTS {results}")
|
print(f"RESULTS ITEMS {results.items}")
|
||||||
|
print(f"RESULTS HAS_NEXT {results.has_next}")
|
||||||
try:
|
try:
|
||||||
x = jsonify(
|
x = jsonify(
|
||||||
data=[row.serialize() for row in results.items], has_next=results.has_next
|
data=[row.serialize() for row in results.items], has_next=results.has_next()
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise e
|
raise e
|
||||||
|
|||||||
Reference in New Issue
Block a user