Fix Tandoor pagination: use page/page_size instead of limit/offset
Tandoor's /api/recipe/ endpoint uses Django REST Framework's PageNumberPagination (page + page_size), not LimitOffsetPagination. The limit/offset params were silently ignored, returning all recipes on every page. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -87,8 +87,8 @@ class TandoorClient:
|
||||
Returns {"items": [...], "page": int, "per_page": int, "total": int}.
|
||||
"""
|
||||
params: dict = {
|
||||
"limit": per_page,
|
||||
"offset": (page - 1) * per_page,
|
||||
"page": page,
|
||||
"page_size": per_page,
|
||||
"format": "json",
|
||||
}
|
||||
if search:
|
||||
|
||||
Reference in New Issue
Block a user