Merge pull request #3389 from alphagov/improve-pagination-queries

Set `count_pages` as False to stop running of redundant query
This commit is contained in:
David McDonald
2021-12-13 11:41:33 +00:00
committed by GitHub

View File

@@ -83,7 +83,8 @@ def get_notifications():
older_than=data.get('older_than'),
client_reference=data.get('reference'),
page_size=current_app.config.get('API_PAGE_SIZE'),
include_jobs=data.get('include_jobs')
include_jobs=data.get('include_jobs'),
count_pages=False
)
def _build_links(notifications):