From cd7c841f5b7b6289486b71114734a425ba2b1b1b Mon Sep 17 00:00:00 2001 From: AntoJvlt Date: Sun, 11 Apr 2021 22:26:31 +0200 Subject: [PATCH] Fix default languages loading --- nominatim/tools/special_phrases.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nominatim/tools/special_phrases.py b/nominatim/tools/special_phrases.py index e2ec8ce4..3bb240ab 100644 --- a/nominatim/tools/special_phrases.py +++ b/nominatim/tools/special_phrases.py @@ -80,7 +80,7 @@ class SpecialPhrasesImporter(): 'et', 'eu', 'fa', 'fi', 'fr', 'gl', 'hr', 'hu', 'ia', 'is', 'it', 'ja', 'mk', 'nl', 'no', 'pl', 'ps', 'pt', 'ru', 'sk', 'sl', 'sv', 'uk', 'vi'] - return self.config.LANGUAGES.split(',') or default_languages + return self.config.LANGUAGES.split(',') if self.config.LANGUAGES else default_languages @staticmethod def _get_wiki_content(lang): -- 2.45.2