mirror of
https://github.com/searxng/searxng
synced 2024-01-01 18:24:07 +00:00
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', '')):
|
||||
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
|
||||
duplicated['positions'].append(position)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user