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