forked from zaclys/searxng
[fix] pep8
This commit is contained in:
parent
e74bdf8429
commit
ed1c1bdb04
@ -106,7 +106,7 @@ def response(resp):
|
||||
doc = fromstring(resp.text)
|
||||
|
||||
# parse results
|
||||
for i,r in enumerate(doc.xpath(result_xpath)):
|
||||
for i, r in enumerate(doc.xpath(result_xpath)):
|
||||
if i >= 30:
|
||||
break
|
||||
try:
|
||||
|
@ -51,7 +51,6 @@ def request(query, params):
|
||||
'engine0': 'v1all',
|
||||
}
|
||||
|
||||
|
||||
# set language if specified
|
||||
if params['language'] != 'all':
|
||||
language = 'english'
|
||||
|
@ -37,7 +37,7 @@ def on_result(request, search, result):
|
||||
parsed_query = parse_qsl(query)
|
||||
|
||||
changed = False
|
||||
for i,(param_name,_) in enumerate(list(parsed_query)):
|
||||
for i, (param_name, _) in enumerate(list(parsed_query)):
|
||||
for reg in regexes:
|
||||
if reg.match(param_name):
|
||||
parsed_query.pop(i)
|
||||
|
Loading…
Reference in New Issue
Block a user