summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarc <a01200356@itesm.mx>2017-07-21 22:32:18 -0500
committerAdam Tauber <asciimoo@gmail.com>2017-07-26 15:49:16 +0200
commit5f36e85b37743f3e4704257b66ce760c12008093 (patch)
treee7fa1eac92e2660b6a76add8772f01abd4949332
parent856dfc3018083d62308f18f36b50e5b0d767edf6 (diff)
downloadsearxng-5f36e85b37743f3e4704257b66ce760c12008093.tar.gz
searxng-5f36e85b37743f3e4704257b66ce760c12008093.zip
ensure all parameters are merged in results
-rw-r--r--searx/results.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/searx/results.py b/searx/results.py
index badd86ddb..19404aec1 100644
--- a/searx/results.py
+++ b/searx/results.py
@@ -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)