mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 20:29:36 +00:00
fix pagination for empty hits return, #732
This commit is contained in:
@@ -91,7 +91,7 @@ class ApiBaseView(APIView):
|
||||
else:
|
||||
self.status_code = 404
|
||||
|
||||
if pagination:
|
||||
if pagination and response.get("hits"):
|
||||
self.pagination_handler.validate(
|
||||
response["hits"]["total"]["value"]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user