mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -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'),
|
older_than=data.get('older_than'),
|
||||||
client_reference=data.get('reference'),
|
client_reference=data.get('reference'),
|
||||||
page_size=current_app.config.get('API_PAGE_SIZE'),
|
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):
|
def _build_links(notifications):
|
||||||
|
|||||||
Reference in New Issue
Block a user