From: AntoJvlt Date: Sun, 11 Apr 2021 20:26:31 +0000 (+0200) Subject: Fix default languages loading X-Git-Tag: v4.0.0~121^2 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/5ecae1071397c24c6333e82a842dbb55c5e0bc36?hp=--cc Fix default languages loading --- 5ecae1071397c24c6333e82a842dbb55c5e0bc36 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):