diff options
author | Alexandre Flament <alex@al-f.net> | 2020-09-14 10:11:49 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2020-09-22 12:36:26 +0200 |
commit | edd8dccd07d5c9bbd5d73c74ee98d0a7ee585dd0 (patch) | |
tree | a688a0c148f7c23cd99b87e01f8b6d565ffda235 /searx/query.py | |
parent | c4067a9d02d97ca08259daeede92a031cd608724 (diff) | |
download | searxng-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.py | 8 |
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: |