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:
Alexey Bezhan
2019-01-09 14:36:36 +00:00
committed by GitHub
7 changed files with 42 additions and 3 deletions

View File

@@ -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
)