From 4d1770398a6af8902e75c0bd885781584d39e796 Mon Sep 17 00:00:00 2001 From: marc Date: Thu, 20 Jul 2017 15:47:20 -0500 Subject: remove 'all' option from search languages --- searx/engines/wikidata.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'searx/engines/wikidata.py') 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]: -- cgit v1.2.3