mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 16:25:33 +01:00
code style
This commit is contained in:
parent
cea34211b6
commit
ca2cb694d0
2 changed files with 9 additions and 7 deletions
|
|
@ -370,8 +370,7 @@ class SearchView(APIView):
|
|||
page = 1
|
||||
|
||||
try:
|
||||
with index.query_page(self.ix, page, query, more_like_id, more_like_content) as (result_page,
|
||||
corrected_query):
|
||||
with index.query_page(self.ix, page, query, more_like_id, more_like_content) as (result_page, corrected_query): # NOQA: E501
|
||||
return Response(
|
||||
{'count': len(result_page),
|
||||
'page': result_page.pagenum,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue