diff options
| author | Alexandre Flament <alex@al-f.net> | 2022-03-28 21:36:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-28 21:36:20 +0200 |
| commit | 0379856712ced64f9fa039d4cb77ff3532b85536 (patch) | |
| tree | b75ba0ff34af5b197d60d23d7259ca877b462909 /searx/query.py | |
| parent | dec04c0ed640caac3b901787aca2a14452734fe7 (diff) | |
| parent | 2e4557f3f3de4d423b4ef1fb0e51a98948a79e31 (diff) | |
Merge pull request #967 from return42/language-filter
[mod] add flags to the languages filter
Diffstat (limited to 'searx/query.py')
| -rw-r--r-- | searx/query.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/query.py b/searx/query.py index f5f628823..9a1398771 100644 --- a/searx/query.py +++ b/searx/query.py @@ -85,7 +85,7 @@ class LanguageParser(QueryPartParser): # check if any language-code is equal with # declared language-codes for lc in language_codes: - lang_id, lang_name, country, english_name = map(str.lower, lc) + lang_id, lang_name, country, english_name, _flag = map(str.lower, lc) # if correct language-code is found # set it as new search-language @@ -128,7 +128,7 @@ class LanguageParser(QueryPartParser): for lc in language_codes: if lc[0] not in settings['search']['languages']: continue - lang_id, lang_name, country, english_name = map(str.lower, lc) + lang_id, lang_name, country, english_name, _flag = map(str.lower, lc) # check if query starts with language-id if lang_id.startswith(value): |