mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
[fix] remove unexpected language restriction
This commit is contained in:
parent
abd2d8605e
commit
bcdbf883fd
1 changed files with 3 additions and 5 deletions
|
@ -55,12 +55,10 @@ def request(query, params):
|
|||
if offset == 1:
|
||||
search_string = inital_query
|
||||
|
||||
if params['language'] == 'all':
|
||||
lang = 'EN'
|
||||
else:
|
||||
# Add language filter in query if specific language was given
|
||||
if params['language'] != 'all':
|
||||
lang = match_language(params['language'], supported_languages, language_aliases)
|
||||
|
||||
query = 'language:{} {}'.format(lang.split('-')[0].upper(), query)
|
||||
query = 'language:{} {}'.format(lang.split('-')[0].upper(), query)
|
||||
|
||||
search_path = search_string.format(query=urlencode({'q': query}), offset=offset)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue