forked from Ponysearch/Ponysearch
ensure all parameters are merged in results
This commit is contained in:
parent
856dfc3018
commit
5f36e85b37
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue