summaryrefslogtreecommitdiff
path: root/searx/search.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2020-09-14 10:11:49 +0200
committerAlexandre Flament <alex@al-f.net>2020-09-22 12:36:26 +0200
commitedd8dccd07d5c9bbd5d73c74ee98d0a7ee585dd0 (patch)
treea688a0c148f7c23cd99b87e01f8b6d565ffda235 /searx/search.py
parentc4067a9d02d97ca08259daeede92a031cd608724 (diff)
downloadsearxng-edd8dccd07d5c9bbd5d73c74ee98d0a7ee585dd0.tar.gz
searxng-edd8dccd07d5c9bbd5d73c74ee98d0a7ee585dd0.zip
[mod] searx.query.RawTextQuery: getSearchQuery and changeSearchQuery rename to getQuery and changeQuery
getSearchQuery is confusing, the method returns a str not a SearchQuery object
Diffstat (limited to 'searx/search.py')
-rw-r--r--searx/search.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/search.py b/searx/search.py
index 9c66f75fc..9c1c19446 100644
--- a/searx/search.py
+++ b/searx/search.py
@@ -268,7 +268,7 @@ def get_search_query_from_webapp(preferences, form):
raw_text_query = RawTextQuery(form['q'], disabled_engines)
# set query
- query = raw_text_query.getSearchQuery()
+ query = raw_text_query.getQuery()
# get and check page number
pageno_param = form.get('pageno', '1')