mirror of
https://github.com/searxng/searxng.git
synced 2024-12-29 20:50:28 +00:00
[fix] better url comparison
This commit is contained in:
parent
83c39a565a
commit
ad2ff1fda8
1 changed files with 2 additions and 1 deletions
|
@ -96,7 +96,8 @@ def search(query, request, selected_engines):
|
|||
duplicated = False
|
||||
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:
|
||||
res['parsed_url'].path == new_res['parsed_url'].path and\
|
||||
res['parsed_url'].query == res['parsed_url'].query:
|
||||
duplicated = new_res
|
||||
break
|
||||
if duplicated:
|
||||
|
|
Loading…
Reference in a new issue