diff options
| author | Mohamed Elashri <muhammadelashri@gmail.com> | 2022-09-30 23:06:54 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-30 23:06:54 +0000 |
| commit | 8d5653e60d5299979c0de5e55b1c5ca0bee8190c (patch) | |
| tree | 8dc02b7663a5c9c91b09483e4499a612d9823698 /searx/query.py | |
| parent | 212c98c9f55dc602f57b4f01a73192450e9782b7 (diff) | |
| parent | 62324655ff0d2e6f234b3e31413877b4b4a7a9fa (diff) | |
Merge branch 'searxng:master' into master
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() |