How to use the sqlakeyset.unserialize_bookmark function in sqlakeyset

To help you get started, we’ve selected a few sqlakeyset examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github google / vulncode-db / lib / utils.py View on Github external
def parse_pagination_param(param_key):
    pagination_param = request.args.get(param_key, None)
    if not pagination_param:
        return False
    sanitized_param = filter_pagination_param(pagination_param)
    unserialized_pagination = unserialize_bookmark(sanitized_param)
    return unserialized_pagination