diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2022-09-27 17:01:00 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2022-09-27 18:32:14 +0200 |
commit | ba8959ad7c18ce4165d29b7a472d845bd96f4735 (patch) | |
tree | 70da2e25a94588348fd5e66890a4a9fceb9e1ff2 /searx/query.py | |
parent | 94c4cc126b16d4cd1653c410df63af4bc0a4e998 (diff) | |
download | searxng-ba8959ad7c18ce4165d29b7a472d845bd96f4735.tar.gz searxng-ba8959ad7c18ce4165d29b7a472d845bd96f4735.zip |
[fix] typos / reported by @kianmeng in searx PR-3366
[PR-3366] https://github.com/searx/searx/pull/3366
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
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 9a1398771..b8e1c1275 100644 --- a/searx/query.py +++ b/searx/query.py @@ -198,10 +198,10 @@ class BangParser(QueryPartParser): self.raw_text_query.enginerefs.append(EngineRef(value, 'none')) return True - # check if prefix is equal with categorie name + # check if prefix is equal with category name if value in categories: # using all engines for that search, which - # are declared under that categorie name + # are declared under that category name self.raw_text_query.enginerefs.extend( EngineRef(engine.name, value) for engine in categories[value] @@ -219,7 +219,7 @@ class BangParser(QueryPartParser): self._add_autocomplete(first_char + suggestion) return - # check if query starts with categorie name + # check if query starts with category name for category in categories: if category.startswith(value): self._add_autocomplete(first_char + category.replace(' ', '_')) @@ -311,7 +311,7 @@ class RawTextQuery: def getFullQuery(self): """ - get full querry including whitespaces + get full query including whitespaces """ return '{0} {1}'.format(' '.join(self.query_parts), self.getQuery()).strip() |