mirror of https://github.com/searx/searx
[fix] pep8 fix for faroo engine
This commit is contained in:
parent
0607b167f8
commit
20d2d4dab1
|
@ -79,8 +79,7 @@ def response(resp):
|
|||
# parse results
|
||||
for result in search_res['results']:
|
||||
publishedDate = None
|
||||
result_json = {'url': result['url'],
|
||||
'title': result['title'],
|
||||
result_json = {'url': result['url'], 'title': result['title'],
|
||||
'content': result['kwic']}
|
||||
if result['news']:
|
||||
result_json['publishedDate'] = \
|
||||
|
@ -88,7 +87,7 @@ def response(resp):
|
|||
|
||||
# append image result if image url is set
|
||||
if result['iurl']:
|
||||
result_json['template'] ='videos.html'
|
||||
result_json['template'] = 'videos.html'
|
||||
result_json['thumbnail'] = result['iurl']
|
||||
|
||||
results.append(result_json)
|
||||
|
|
Loading…
Reference in New Issue