forked from Icycoide/searxng
Merge branch 'featured_result'
This commit is contained in:
commit
d6b017efb5
5 changed files with 0 additions and 29 deletions
|
@ -138,9 +138,6 @@ def index():
|
|||
for engine in result['engines']:
|
||||
if engine in ['wikipedia', 'youtube', 'vimeo', 'soundcloud', 'twitter', 'stackoverflow', 'github']:
|
||||
result['favicon'] = engine
|
||||
if engine in ['wikipedia', 'ddg definitions']:
|
||||
featured_results.append(result)
|
||||
results.remove(result)
|
||||
|
||||
if request_data.get('format') == 'json':
|
||||
return Response(json.dumps({'query': query, 'results': results}), mimetype='application/json')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue