Pārlūkot izejas kodu

[fix] wikipedia autocompleter url param

Adam Tauber 10 gadus atpakaļ
vecāks
revīzija
b422788eb4
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      searx/autocomplete.py

+ 1
- 1
searx/autocomplete.py Parādīt failu

@@ -69,7 +69,7 @@ def wikipedia(query):
69 69
     # wikipedia autocompleter
70 70
     url = 'https://en.wikipedia.org/w/api.php?action=opensearch&{0}&limit=10&namespace=0&format=json'  # noqa
71 71
 
72
-    resp = loads(get(url.format(urlencode(dict(q=query)))).text)
72
+    resp = loads(get(url.format(urlencode(dict(search=query)))).text)
73 73
     if len(resp) > 1:
74 74
         return resp[1]
75 75
     return []