1
0
mirror of https://github.com/enpaul/keyosk.git synced 2024-12-26 01:33:33 +00:00
This commit is contained in:
Ethan Paul 2020-02-23 01:43:55 -05:00
parent 3ddb0a3677
commit 90ea657ee9

View File

@ -62,11 +62,12 @@ class KeyoskParser(webargs.flaskparser.FlaskParser):
def make_pagination(matches: Sequence[Any], request=flask.request) -> PaginationData:
"""Paginate a sequence of result data
Parse the pagination parameters out of the request body and filter the list of matches
accordinglly
Parse the pagination parameters out of the request body and filter the list of
matches accordinglly
:param matches: Sequence of results to paginate
:returns: Pagination data tuple with processed results, pagination parameters, and the headers
to return to the client
:returns: Pagination data tuple with processed results, pagination parameters, and
the headers to return to the client
"""
pagination_parameters = {