From 44dab7402d2220d448fd209f216de31d3b0379b8 Mon Sep 17 00:00:00 2001 From: "s.galanskiy" Date: Wed, 9 Jul 2025 13:16:34 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=D0=B1=D0=BE=D0=BB=D1=8C=D1=88?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SRV/api/v1/settings.py | 2 ++ SRV/config/init_config.py | 2 +- SRV/pyproject.toml | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/SRV/api/v1/settings.py b/SRV/api/v1/settings.py index 12d16ed..680e1ec 100644 --- a/SRV/api/v1/settings.py +++ b/SRV/api/v1/settings.py @@ -5,6 +5,8 @@ from starlette.responses import FileResponse from services.settings_service import SettingsService from utils.i18n import get_translations, _ from babel.support import Translations +from models.request import LanguageRequest + logging.basicConfig(level=logging.DEBUG) logger = logging.getLogger(__name__) diff --git a/SRV/config/init_config.py b/SRV/config/init_config.py index c18403c..85f037e 100644 --- a/SRV/config/init_config.py +++ b/SRV/config/init_config.py @@ -33,6 +33,6 @@ def init_config(): ) raise - +# Нативный запуск для тестов if __name__ == "__main__": init_config() diff --git a/SRV/pyproject.toml b/SRV/pyproject.toml index c4ae2a4..9ea0f88 100644 --- a/SRV/pyproject.toml +++ b/SRV/pyproject.toml @@ -2,7 +2,7 @@ name = "GONETS" version = "0.1.0" description = "API для управления системными сервисами Linux" -authors = ["Sergey Galanskiy ", "Vladimir Shalimow "] +authors = ["Sergey Galanskiy "] readme = "README.md" packages = [ {include = "api"}, @@ -11,6 +11,8 @@ packages = [ {include = "services"}, {include = "core"}, {include = "storage"}, + {include = "utils"}, + {include = "locales"} ]