From 8d80b2bfff51b4f8c055e6fdcbd1de59046b2204 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Fri, 18 Oct 2024 12:52:24 -0700 Subject: [PATCH] fix first paginate method --- app/inbound_sms/rest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/inbound_sms/rest.py b/app/inbound_sms/rest.py index 94e508e07..4ee6ee1d3 100644 --- a/app/inbound_sms/rest.py +++ b/app/inbound_sms/rest.py @@ -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( 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: 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: raise e