From 13d792b6b67a60c68594710d0ce2fcfc68147aea Mon Sep 17 00:00:00 2001 From: dingedi Date: Sat, 17 Sep 2022 08:45:59 +0200 Subject: [PATCH] remove use of deprecated method --- app/init.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/init.py b/app/init.py index 476676c..9ada3f7 100644 --- a/app/init.py +++ b/app/init.py @@ -21,7 +21,7 @@ def check_and_install_models(force=False, load_only_lang_codes=None): package.update_package_index() # Load available packages from local package index - available_packages = package.load_available_packages() + available_packages = package.get_available_packages() print("Found %s models" % len(available_packages)) if load_only_lang_codes is not None: @@ -55,10 +55,10 @@ def check_and_install_models(force=False, load_only_lang_codes=None): package.install_from_path(download_path) # reload installed languages - app.language.languages = translate.load_installed_languages() + app.language.languages = translate.get_installed_languages() print( "Loaded support for %s languages (%s models total)!" - % (len(translate.load_installed_languages()), len(available_packages)) + % (len(translate.get_installed_languages()), len(available_packages)) )