From 18f905a366be6120faa03259261001b7d27a2322 Mon Sep 17 00:00:00 2001 From: Danil Akhtarov Date: Mon, 16 Oct 2023 21:05:02 +0300 Subject: [PATCH] ci: fix tests --- sportorg/language.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/sportorg/language.py b/sportorg/language.py index 48965eb3..735cecda 100644 --- a/sportorg/language.py +++ b/sportorg/language.py @@ -35,6 +35,12 @@ def generate_mo() -> None: logger.error(str(e)) +if __name__ == '__main__': + # FIXME move to another file + logger.info('Generate mo files') + generate_mo() + + def locale() -> Callable[[str], str]: cat = gettext.Catalog( config.NAME.lower(), config.LOCALE_DIR, languages=[locale_current] @@ -51,8 +57,3 @@ def get_languages() -> List[str]: translate = locale() - - -if __name__ == '__main__': - logger.info('Generate mo files') - generate_mo()