1
0
mirror of https://github.com/enpaul/keyosk.git synced 2024-11-24 23:47:49 +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: def make_pagination(matches: Sequence[Any], request=flask.request) -> PaginationData:
"""Paginate a sequence of result data """Paginate a sequence of result data
Parse the pagination parameters out of the request body and filter the list of matches Parse the pagination parameters out of the request body and filter the list of
accordinglly matches accordinglly
:param matches: Sequence of results to paginate :param matches: Sequence of results to paginate
:returns: Pagination data tuple with processed results, pagination parameters, and the headers :returns: Pagination data tuple with processed results, pagination parameters, and
to return to the client the headers to return to the client
""" """
pagination_parameters = { pagination_parameters = {