Bläddra i källkod

Add api support.

moritan 9 år sedan
förälder
incheckning
d7302da47a
1 ändrade filer med 3 tillägg och 1 borttagningar
  1. 3
    1
      searx/searchAPI.py

+ 3
- 1
searx/searchAPI.py Visa fil

@@ -174,7 +174,9 @@ def score_results(results):
174 174
                 else new_res['parsed_url'].path
175 175
 
176 176
             # check if that result is a duplicate
177
-            if res['host'] == new_res['host'] and unquote(p1) == unquote(p2) and res['parsed_url'].query == new_res['parsed_url'].query and res.get('template') == new_res.get('template'):
177
+            if res['host'] == new_res['host'] and unquote(p1) == unquote(p2) \
178
+                    and res['parsed_url'].query == new_res['parsed_url'].query \
179
+                    and res.get('template') == new_res.get('template'):
178 180
                 duplicated = new_res
179 181
                 break
180 182