Optimizations and refactoring.
This commit is contained in:
parent
94837e1b6f
commit
a0ee1caeb7
4 changed files with 273 additions and 85 deletions
|
|
@ -91,7 +91,7 @@ def init_listing_routes(app):
|
|||
]
|
||||
limit = int(request.args.get("limit", 15))
|
||||
cursor = request.args.get("cursor")
|
||||
key, backward = decode_cursor(cursor)
|
||||
key, _desc, backward = decode_cursor(cursor)
|
||||
|
||||
service = crudkit.crud.get_service(cls)
|
||||
window = service.seek_window(spec | {"limit": limit}, key=key, backward=backward, include_total=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue