mirror of
https://github.com/searxng/searxng.git
synced 2024-11-19 02:40:11 +01:00
Merge pull request #1545 from MarcAbonce/fix_duplicated_query
[fix] Stop engine from sending duplicated requests
This commit is contained in:
commit
3ee804ec8c
@ -113,17 +113,14 @@ class RawTextQuery(object):
|
|||||||
parse_next = True
|
parse_next = True
|
||||||
engine_name = engine_shortcuts[prefix]
|
engine_name = engine_shortcuts[prefix]
|
||||||
if engine_name in engines:
|
if engine_name in engines:
|
||||||
for engine_category in engines[engine_name].categories:
|
self.engines.append({'category': 'none',
|
||||||
self.engines.append({'category': engine_category,
|
|
||||||
'name': engine_name,
|
'name': engine_name,
|
||||||
'from_bang': True})
|
'from_bang': True})
|
||||||
|
|
||||||
# check if prefix is equal with engine name
|
# check if prefix is equal with engine name
|
||||||
elif prefix in engines:
|
elif prefix in engines:
|
||||||
parse_next = True
|
parse_next = True
|
||||||
if prefix in engines:
|
self.engines.append({'category': 'none',
|
||||||
for engine_category in engines[prefix].categories:
|
|
||||||
self.engines.append({'category': engine_category,
|
|
||||||
'name': prefix,
|
'name': prefix,
|
||||||
'from_bang': True})
|
'from_bang': True})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user