X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c314a3092c5b51c7782015f6fa9ac093b46fa174..ae8694a6a6862d7cb66cd91102d2802c9899e7cf:/src/nominatim_db/tools/special_phrases/sp_wiki_loader.py diff --git a/src/nominatim_db/tools/special_phrases/sp_wiki_loader.py b/src/nominatim_db/tools/special_phrases/sp_wiki_loader.py index 0fe7c0aa..9908f753 100644 --- a/src/nominatim_db/tools/special_phrases/sp_wiki_loader.py +++ b/src/nominatim_db/tools/special_phrases/sp_wiki_loader.py @@ -17,6 +17,7 @@ from .special_phrase import SpecialPhrase LOG = logging.getLogger() + def _get_wiki_content(lang: str) -> str: """ Request and return the wiki page's content @@ -43,12 +44,11 @@ class SPWikiLoader: self.type_fix_pattern = re.compile(r'\"|"') self.languages = self.config.get_str_list('LANGUAGES') or \ - ['af', 'ar', 'br', 'ca', 'cs', 'de', 'en', 'es', - 'et', 'eu', 'fa', 'fi', 'fr', 'gl', 'hr', 'hu', - 'ia', 'is', 'it', 'ja', 'mk', 'nl', 'no', 'pl', - 'ps', 'pt', 'ru', 'sk', 'sl', 'sv', 'uk', 'vi', - 'lv', 'tr'] - + ['af', 'ar', 'br', 'ca', 'cs', 'de', 'en', 'es', + 'et', 'eu', 'fa', 'fi', 'fr', 'gl', 'hr', 'hu', + 'ia', 'is', 'it', 'ja', 'mk', 'nl', 'no', 'pl', + 'ps', 'pt', 'ru', 'sk', 'sl', 'sv', 'uk', 'vi', + 'lv', 'tr'] def generate_phrases(self) -> Iterable[SpecialPhrase]: """ Download the wiki pages for the configured languages