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)