Add support for last param in pagination to match catalog spec

This commit is contained in:
Joseph Schorr 2017-06-02 12:03:50 -07:00
parent f9e4150fab
commit f44df49236

View file

@ -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