summaryrefslogtreecommitdiff
path: root/searx/query.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/query.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/query.py')
-rw-r--r--searx/query.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/searx/query.py b/searx/query.py
index 6eba2cbd6..7c2b0a249 100644
--- a/searx/query.py
+++ b/searx/query.py
@@ -162,14 +162,14 @@ class RawTextQuery:
# append query part to query_part list
self.query_parts.append(query_part)
- def changeSearchQuery(self, search_query):
+ def changeQuery(self, query):
if len(self.query_parts):
- self.query_parts[-1] = search_query
+ self.query_parts[-1] = query
else:
- self.query_parts.append(search_query)
+ self.query_parts.append(query)
return self
- def getSearchQuery(self):
+ def getQuery(self):
if len(self.query_parts):
return self.query_parts[-1]
else: