increase page size for API calls to 250

This commit is contained in:
Rebecca Law
2017-01-20 12:26:55 +00:00
parent 645a6fb3cf
commit 8ed0979251
4 changed files with 461 additions and 497 deletions

View File

@@ -1,6 +1,6 @@
import uuid
from flask import jsonify, request, url_for
from flask import jsonify, request, url_for, current_app
from werkzeug.exceptions import abort
from app import api_user
@@ -43,7 +43,8 @@ def get_notifications():
key_type=api_user.key_type,
personalisation=True,
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')
)
def _build_links(notifications):