forked from Ponysearch/Ponysearch
[enh] displaying all search engines in results
This commit is contained in:
parent
70cbc09e93
commit
39a223091e
1 changed files with 1 additions and 0 deletions
|
@ -100,6 +100,7 @@ def search(query, request, selected_engines):
|
||||||
if len(res.get('content', '')) > len(duplicated.get('content', '')):
|
if len(res.get('content', '')) > len(duplicated.get('content', '')):
|
||||||
duplicated['content'] = res['content']
|
duplicated['content'] = res['content']
|
||||||
duplicated['score'] += score
|
duplicated['score'] += score
|
||||||
|
duplicated['engine'] += ', '+res['engine']
|
||||||
if duplicated['parsed_url'].scheme == 'https':
|
if duplicated['parsed_url'].scheme == 'https':
|
||||||
continue
|
continue
|
||||||
elif res['parsed_url'].scheme == 'https':
|
elif res['parsed_url'].scheme == 'https':
|
||||||
|
|
Loading…
Reference in a new issue