Add support for last
param in pagination to match catalog spec
This commit is contained in:
parent
f9e4150fab
commit
f44df49236
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ def paginate(limit_kwarg_name='limit', offset_kwarg_name='offset',
|
|||
requested_limit = 0
|
||||
|
||||
limit = max(min(requested_limit, _MAX_RESULTS_PER_PAGE), 1)
|
||||
next_page_token = request.args.get('next_page', None)
|
||||
next_page_token = request.args.get('next_page', request.args.get('last', None))
|
||||
|
||||
# Decrypt the next page token, if any.
|
||||
offset = 0
|
||||
|
|
Reference in a new issue