summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2019-04-09 03:21:37 +0200
committerGitHub <noreply@github.com>2019-04-09 03:21:37 +0200
commite868650df7164ad36079c1525f8efd0d5c56fe08 (patch)
tree8eab37042642564a63a2be8f11f3c85ec42fd6fa
parentf2d49a697124b8f4c6a4df68626b3d29ec959e70 (diff)
parent3ee804ec8c64e65ea180b2da7a7d79feb73bee5f (diff)
downloadsearxng-e868650df7164ad36079c1525f8efd0d5c56fe08.tar.gz
searxng-e868650df7164ad36079c1525f8efd0d5c56fe08.zip
Merge branch 'master' into youtube_fix
-rw-r--r--searx/query.py15
1 files changed, 6 insertions, 9 deletions
diff --git a/searx/query.py b/searx/query.py
index 0b5143d39..f76bd91d3 100644
--- a/searx/query.py
+++ b/searx/query.py
@@ -113,19 +113,16 @@ class RawTextQuery(object):
parse_next = True
engine_name = engine_shortcuts[prefix]
if engine_name in engines:
- for engine_category in engines[engine_name].categories:
- self.engines.append({'category': engine_category,
- 'name': engine_name,
- 'from_bang': True})
+ self.engines.append({'category': 'none',
+ 'name': engine_name,
+ 'from_bang': True})
# check if prefix is equal with engine name
elif prefix in engines:
parse_next = True
- if prefix in engines:
- for engine_category in engines[prefix].categories:
- self.engines.append({'category': engine_category,
- 'name': prefix,
- 'from_bang': True})
+ self.engines.append({'category': 'none',
+ 'name': prefix,
+ 'from_bang': True})
# check if prefix is equal with categorie name
elif prefix in categories: