diff options
| author | asciimoo <asciimoo@gmail.com> | 2013-10-23 12:24:51 +0200 |
|---|---|---|
| committer | asciimoo <asciimoo@gmail.com> | 2013-10-23 12:24:51 +0200 |
| commit | 5e358ea9a9c3c5d9c90530892639d1fe82cfb40f (patch) | |
| tree | 4ac03894989239f809f1143043dd96372ce4202c | |
| parent | 708fa6f88af8a2e0fa1a02e1603c6b231e68b212 (diff) | |
[enh] merging only results with same rendering templates
| -rw-r--r-- | searx/engines/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py index 8339a13dc..ee215a6ef 100644 --- a/searx/engines/__init__.py +++ b/searx/engines/__init__.py @@ -106,7 +106,8 @@ def search(query, request, selected_categories): for new_res in results: if res['parsed_url'].netloc == new_res['parsed_url'].netloc and\ res['parsed_url'].path == new_res['parsed_url'].path and\ - res['parsed_url'].query == new_res['parsed_url'].query: + res['parsed_url'].query == new_res['parsed_url'].query and\ + res.get('template') == new_res.get('template'): duplicated = new_res break if duplicated: |