forked from Ponysearch/Ponysearch
[fix] dict keys
This commit is contained in:
parent
ec39c0ed2c
commit
90cec08e25
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ def search(query, request, selected_engines):
|
|||
duplicated = new_res
|
||||
break
|
||||
if duplicated:
|
||||
if len(res['content']) > len(duplicated):
|
||||
if len(res.get('content', '')) > len(duplicated.get('content', '')):
|
||||
duplicated['content'] = res['content']
|
||||
duplicated['score'] += score
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue