diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2022-03-19 16:45:14 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2022-03-19 16:45:14 +0100 |
commit | 2e4557f3f3de4d423b4ef1fb0e51a98948a79e31 (patch) | |
tree | 59e390359f7ebc49d9091a8176797a18ec9eb2dd /searxng_extra/update | |
parent | a25e3767d44d512d14de471d28023333482dbc22 (diff) | |
download | searxng-2e4557f3f3de4d423b4ef1fb0e51a98948a79e31.tar.gz searxng-2e4557f3f3de4d423b4ef1fb0e51a98948a79e31.zip |
[fix] languages: show country name even if there is only one country
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searxng_extra/update')
-rwxr-xr-x | searxng_extra/update/update_languages.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/searxng_extra/update/update_languages.py b/searxng_extra/update/update_languages.py index 631f197e4..92083f39f 100755 --- a/searxng_extra/update/update_languages.py +++ b/searxng_extra/update/update_languages.py @@ -224,9 +224,7 @@ def filter_language_list(all_languages): if len(filtered_countries) > 1: filtered_countries[lang] = _copy_lang_data(lang, None) elif len(filtered_countries) == 1: - # if there's only one country per language, it's not necessary to show country name lang_country = next(iter(filtered_countries)) - filtered_countries[lang_country]['country_name'] = None # if no country has enough engines try to get most likely country code from babel if not filtered_countries: |