forked from zaclys/searxng
[enh] allow override of blocked engines from query string
This commit is contained in:
parent
b19e681cce
commit
78828efdb0
|
@ -88,15 +88,13 @@ class Query(object):
|
|||
prefix = query_part[1:].replace('_', ' ')
|
||||
|
||||
# check if prefix is equal with engine shortcut
|
||||
if prefix in engine_shortcuts\
|
||||
and not engine_shortcuts[prefix] in self.blocked_engines:
|
||||
if prefix in engine_shortcuts:
|
||||
parse_next = True
|
||||
self.engines.append({'category': 'none',
|
||||
'name': engine_shortcuts[prefix]})
|
||||
|
||||
# check if prefix is equal with engine name
|
||||
elif prefix in engines\
|
||||
and prefix not in self.blocked_engines:
|
||||
elif prefix in engines:
|
||||
parse_next = True
|
||||
self.engines.append({'category': 'none',
|
||||
'name': prefix})
|
||||
|
|
Loading…
Reference in New Issue