diff options
author | marc <a01200356@itesm.mx> | 2017-07-20 15:47:20 -0500 |
---|---|---|
committer | Marc Abonce Seguin <marc-abonce@mailbox.org> | 2017-12-06 01:20:15 -0600 |
commit | 4d1770398a6af8902e75c0bd885781584d39e796 (patch) | |
tree | 1ad30e59206eca081c93a2ad37928ce059f7d114 /searx/engines/wikidata.py | |
parent | 46fb0d860e35a45658969c4e2ac306a1072bc331 (diff) | |
download | searxng-4d1770398a6af8902e75c0bd885781584d39e796.tar.gz searxng-4d1770398a6af8902e75c0bd885781584d39e796.zip |
remove 'all' option from search languages
Diffstat (limited to 'searx/engines/wikidata.py')
-rw-r--r-- | searx/engines/wikidata.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/searx/engines/wikidata.py b/searx/engines/wikidata.py index be217463c..1f31a1f88 100644 --- a/searx/engines/wikidata.py +++ b/searx/engines/wikidata.py @@ -57,8 +57,6 @@ calendar_name_xpath = './/sup[contains(@class,"wb-calendar-name")]' def request(query, params): language = params['language'].split('-')[0] - if language == 'all': - language = 'en' params['url'] = url_search.format( query=urlencode({'label': query, 'language': language})) @@ -71,8 +69,6 @@ def response(resp): wikidata_ids = html.xpath(wikidata_ids_xpath) language = resp.search_params['language'].split('-')[0] - if language == 'all': - language = 'en' # TODO: make requests asynchronous to avoid timeout when result_count > 1 for wikidata_id in wikidata_ids[:result_count]: |