mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
remove 'all' option from search languages
This commit is contained in:
@@ -32,10 +32,7 @@ search_string = 'search?{query}&first={offset}'
|
||||
def request(query, params):
|
||||
offset = (params['pageno'] - 1) * 10 + 1
|
||||
|
||||
if params['language'] != 'all':
|
||||
lang = params['language'].split('-')[0].upper()
|
||||
else:
|
||||
lang = 'EN'
|
||||
lang = params['language'].split('-')[0].upper()
|
||||
|
||||
query = u'language:{} {}'.format(lang, query.decode('utf-8')).encode('utf-8')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user