瀏覽代碼

ensure all parameters are merged in results

marc 7 年之前
父節點
當前提交
5f36e85b37
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      searx/results.py

+ 5
- 0
searx/results.py 查看文件

@@ -218,6 +218,11 @@ class ResultContainer(object):
218 218
                     result_content_len(duplicated.get('content', '')):
219 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 226
             # add the new position
222 227
             duplicated['positions'].append(position)
223 228