From b63d645a52d663036b97e31a59818d79faa4da81 Mon Sep 17 00:00:00 2001 From: Noémi Ványi Date: Sun, 6 Jan 2019 15:27:46 +0100 Subject: Revert "remove 'all' option from search languages" This reverts commit 4d1770398a6af8902e75c0bd885781584d39e796. --- searx/engines/qwant.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'searx/engines/qwant.py') diff --git a/searx/engines/qwant.py b/searx/engines/qwant.py index 1bef07cc7..de12955c6 100644 --- a/searx/engines/qwant.py +++ b/searx/engines/qwant.py @@ -46,8 +46,9 @@ def request(query, params): offset=offset) # add language tag - language = match_language(params['language'], supported_languages, language_aliases) - params['url'] += '&locale=' + language.replace('-', '_').lower() + if params['language'] != 'all': + language = match_language(params['language'], supported_languages, language_aliases) + params['url'] += '&locale=' + language.replace('-', '_').lower() return params -- cgit v1.2.3-54-g00ecf