mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Merge branch 'featured_result'
This commit is contained in:
commit
d6b017efb5
5 changed files with 0 additions and 29 deletions
|
|
@ -18,9 +18,3 @@ def response(resp):
|
|||
return [{'url': url + 'wiki/' + quote(result['title'].replace(' ', '_').encode('utf-8')),
|
||||
'title': result['title']} for result in res[:int(number_of_results)]]
|
||||
|
||||
if not len(res):
|
||||
return results
|
||||
for result in res[:int(number_of_results)]:
|
||||
results.append({'url': url + 'wiki/' + quote(result['title'].replace(' ', '_').encode('utf-8')), 'title': result['title'], 'favicon':'wikipedia'})
|
||||
return results
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue