fixing pagination and download links along with tests

This commit is contained in:
Beverly Nguyen
2025-07-28 17:04:53 -07:00
parent 0c4125c7a7
commit e828f78853
4 changed files with 104 additions and 19 deletions
+6 -1
View File
@@ -253,7 +253,12 @@ def get_notifications(service_id, message_type, status_override=None): # noqa
)
next_page = None
if "links" in notifications and notifications["links"].get("next", None):
total_items = notifications.get("total", 0)
if (
"links" in notifications
and notifications["links"].get("next", None)
and total_items > 50
):
next_page = generate_next_dict(
"main.view_notifications", service_id, page, url_args
)