Ver código fonte

[fix] better url comparison II.

asciimoo 12 anos atrás
pai
commit
9ea84b285b
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      searx/engines/__init__.py

+ 1
- 1
searx/engines/__init__.py Ver arquivo

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 and\
99
                res['parsed_url'].path == new_res['parsed_url'].path and\
100
-               res['parsed_url'].query == res['parsed_url'].query:
100
+               res['parsed_url'].query == new_res['parsed_url'].query:
101
                 duplicated = new_res
101
                 duplicated = new_res
102
                 break
102
                 break
103
         if duplicated:
103
         if duplicated: