mirror of
https://github.com/searxng/searxng.git
synced 2025-12-23 12:10:00 +00:00
[enh] merging only results with same rendering templates
This commit is contained in:
@@ -106,7 +106,8 @@ def search(query, request, selected_categories):
|
|||||||
for new_res in results:
|
for new_res in results:
|
||||||
if res['parsed_url'].netloc == new_res['parsed_url'].netloc and\
|
if res['parsed_url'].netloc == new_res['parsed_url'].netloc and\
|
||||||
res['parsed_url'].path == new_res['parsed_url'].path 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
|
duplicated = new_res
|
||||||
break
|
break
|
||||||
if duplicated:
|
if duplicated:
|
||||||
|
|||||||
Reference in New Issue
Block a user