summaryrefslogtreecommitdiff
path: root/searx/query.py
diff options
context:
space:
mode:
authorMarc Abonce Seguin <marc-abonce@mailbox.org>2019-03-28 19:25:20 -0600
committerMarc Abonce Seguin <marc-abonce@mailbox.org>2019-03-28 19:25:20 -0600
commitaaa0524cec65d7155ae473e3ea67e16c4b757573 (patch)
tree4105d3fa00f009e408d5caf726f8e6b665071b03 /searx/query.py
parenta80a2d05d14290c57c3cfc59d373e597b1c1c4b5 (diff)
downloadsearxng-aaa0524cec65d7155ae473e3ea67e16c4b757573.tar.gz
searxng-aaa0524cec65d7155ae473e3ea67e16c4b757573.zip
[fix] stop engine from sending duplicated requests
Diffstat (limited to 'searx/query.py')
-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: