Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

changelog, codestyle

jonaswinklere1853583b0ff
diff --git a/docs/changelog.rst b/docs/changelog.rst
index 806d09fe0..68198ec49 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -13,8 +13,8 @@ paperless-ng 0.9.4
* Paperless now supports searching by tags, types and dates. In order to have this applied to your
existing documents, you need to perform a ``document_index reindex`` management command
(see :ref:`administration-index`)
- that adds tags to your search index. You only need to do this once, so that paperless can find
- your documents by tags,types and dates. Paperless keeps your index updated after that whenever
+ that adds the new data to the search index. You only need to do this once, so that paperless can find
+ your documents by tags,types and dates. Paperless keeps the index updated after that whenever
something changes.
* Paperless now has spelling corrections ("Did you mean") for misstyped queries.
* The documentation contains :ref:`information about the query syntax <basic-searching>`.
diff --git a/src/documents/views.py b/src/documents/views.py
index 332bdfe8f..169350c75 100755
--- a/src/documents/views.py
+++ b/src/documents/views.py
@@ -217,7 +217,7 @@ class SearchView(APIView):
}
def get(self, request, format=None):
- if not 'query' in request.query_params:
+ if 'query' not in request.query_params:
return Response({
'count': 0,
'page': 0,