Browse Source

ensure all parameters are merged in results

marc 7 years ago
parent
commit
5f36e85b37
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      searx/results.py

+ 5
- 0
searx/results.py View File

218
                     result_content_len(duplicated.get('content', '')):
218
                     result_content_len(duplicated.get('content', '')):
219
                 duplicated['content'] = result['content']
219
                 duplicated['content'] = result['content']
220
 
220
 
221
+            # merge all result's parameters not found in duplicate
222
+            for key in result.keys():
223
+                if not duplicated.get(key):
224
+                    duplicated[key] = result.get(key)
225
+
221
             # add the new position
226
             # add the new position
222
             duplicated['positions'].append(position)
227
             duplicated['positions'].append(position)
223
 
228