From e1853583b0ff445aae1793341201990eeabaded8 Mon Sep 17 00:00:00 2001 From: jonaswinkler Date: Mon, 30 Nov 2020 16:25:10 +0100 Subject: [PATCH] changelog, codestyle --- docs/changelog.rst | 4 ++-- src/documents/views.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 `. 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,