Browse Source

[fix] better url comparison

asciimoo 11 years ago
parent
commit
ad2ff1fda8
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      searx/engines/__init__.py

+ 2
- 1
searx/engines/__init__.py View File

96
         duplicated = False
96
         duplicated = False
97
         for new_res in results:
97
         for new_res in results:
98
             if res['parsed_url'].netloc == new_res['parsed_url'].netloc and\
98
             if res['parsed_url'].netloc == new_res['parsed_url'].netloc and\
99
-               res['parsed_url'].path == new_res['parsed_url'].path:
99
+               res['parsed_url'].path == new_res['parsed_url'].path and\
100
+               res['parsed_url'].query == res['parsed_url'].query:
100
                 duplicated = new_res
101
                 duplicated = new_res
101
                 break
102
                 break
102
         if duplicated:
103
         if duplicated: