Searchcode engines corrections

This commit is contained in:
Cqoicebordel 2015-01-27 22:39:25 +01:00
parent 0f81aa8410
commit 3282e62ff9
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ def response(resp):
search_results = loads(resp.text) search_results = loads(resp.text)
# parse results # parse results
for result in search_results['results']: for result in search_results.get('results', []):
href = result['url'] href = result['url']
title = "" + result['name'] + " - " + result['filename'] title = "" + result['name'] + " - " + result['filename']
repo = result['repo'] repo = result['repo']

View File

@ -35,7 +35,7 @@ def response(resp):
search_results = loads(resp.text) search_results = loads(resp.text)
# parse results # parse results
for result in search_results['results']: for result in search_results.get('results', []):
href = result['url'] href = result['url']
title = "[" + result['type'] + "] " +\ title = "[" + result['type'] + "] " +\
result['namespace'] +\ result['namespace'] +\