mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-28 03:11:40 -05:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user