Optimizations and refactoring.

This commit is contained in:
Yaro Kasear 2025-09-24 09:53:25 -05:00
parent 94837e1b6f
commit a0ee1caeb7
4 changed files with 273 additions and 85 deletions

View file

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