mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 00:05:21 +01:00
more tests and bugfixes.
This commit is contained in:
parent
6c308116d6
commit
bc4192e7d1
7 changed files with 180 additions and 15 deletions
|
|
@ -224,6 +224,9 @@ class SearchView(APIView):
|
|||
except (ValueError, TypeError):
|
||||
page = 1
|
||||
|
||||
if page < 1:
|
||||
page = 1
|
||||
|
||||
with index.query_page(self.ix, query, page) as result_page:
|
||||
return Response(
|
||||
{'count': len(result_page),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue