forked from Icycoide/searxng
Revert "remove 'all' option from search languages"
This reverts commit 4d1770398a
.
This commit is contained in:
parent
491792c1a5
commit
b63d645a52
51 changed files with 245 additions and 70 deletions
|
@ -45,7 +45,10 @@ def request(query, params):
|
|||
|
||||
format_strings = list(Formatter().parse(base_url))
|
||||
|
||||
language = params['language'].split('-')[0]
|
||||
if params['language'] == 'all':
|
||||
language = 'en'
|
||||
else:
|
||||
language = params['language'].split('-')[0]
|
||||
|
||||
# format_string [('https://', 'language', '', None), ('.wikipedia.org/', None, None, None)]
|
||||
if any(x[1] == 'language' for x in format_strings):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue