1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-22 12:10:11 +01:00

ensure all parameters are merged in results

This commit is contained in:
marc 2017-07-21 22:32:18 -05:00 committed by Adam Tauber
parent 856dfc3018
commit 5f36e85b37

View File

@ -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)