mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
Merge pull request #2284 from alphagov/add-count-pages-flag-to-service-notifications
Don't return pagination links for API Message log requests
This commit is contained in:
@@ -255,6 +255,7 @@ def get_notifications_for_service(
|
||||
filter_dict=None,
|
||||
page=1,
|
||||
page_size=None,
|
||||
count_pages=True,
|
||||
limit_days=None,
|
||||
key_type=None,
|
||||
personalisation=False,
|
||||
@@ -300,7 +301,8 @@ def get_notifications_for_service(
|
||||
|
||||
return query.order_by(desc(Notification.created_at)).paginate(
|
||||
page=page,
|
||||
per_page=page_size
|
||||
per_page=page_size,
|
||||
count=count_pages
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user