forked from zaclys/searxng
ensure all parameters are merged in results
This commit is contained in:
parent
856dfc3018
commit
5f36e85b37
|
@ -218,6 +218,11 @@ class ResultContainer(object):
|
||||||
result_content_len(duplicated.get('content', '')):
|
result_content_len(duplicated.get('content', '')):
|
||||||
duplicated['content'] = result['content']
|
duplicated['content'] = result['content']
|
||||||
|
|
||||||
|
# merge all result's parameters not found in duplicate
|
||||||
|
for key in result.keys():
|
||||||
|
if not duplicated.get(key):
|
||||||
|
duplicated[key] = result.get(key)
|
||||||
|
|
||||||
# add the new position
|
# add the new position
|
||||||
duplicated['positions'].append(position)
|
duplicated['positions'].append(position)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue