mirror of
https://github.com/searxng/searxng
synced 2024-01-01 18:24:07 +00:00
Searchcode engines corrections
This commit is contained in:
parent
0f81aa8410
commit
3282e62ff9
@ -42,7 +42,7 @@ def response(resp):
|
||||
search_results = loads(resp.text)
|
||||
|
||||
# parse results
|
||||
for result in search_results['results']:
|
||||
for result in search_results.get('results', []):
|
||||
href = result['url']
|
||||
title = "" + result['name'] + " - " + result['filename']
|
||||
repo = result['repo']
|
||||
|
@ -35,7 +35,7 @@ def response(resp):
|
||||
search_results = loads(resp.text)
|
||||
|
||||
# parse results
|
||||
for result in search_results['results']:
|
||||
for result in search_results.get('results', []):
|
||||
href = result['url']
|
||||
title = "[" + result['type'] + "] " +\
|
||||
result['namespace'] +\
|
||||
|
Loading…
Reference in New Issue
Block a user