1
0
mirror of https://github.com/searx/searx synced 2024-12-02 07:00:18 +01:00

[fix] better url comparison II.

This commit is contained in:
asciimoo 2013-10-19 20:44:35 +02:00
parent 1e5cbc5f9e
commit 9ea84b285b

View File

@ -97,7 +97,7 @@ def search(query, request, selected_engines):
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 == res['parsed_url'].query: res['parsed_url'].query == new_res['parsed_url'].query:
duplicated = new_res duplicated = new_res
break break
if duplicated: if duplicated: