From e81eb5b0fcdee9a853cfe5b788d614ebac67aea7 Mon Sep 17 00:00:00 2001 From: Alexey Barabanov Date: Mon, 10 Nov 2025 16:46:00 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BD=D0=BE=20=D0=BF=D0=BE=D0=B8=D1=81=D0=BA=20=D1=84?= =?UTF-8?q?=D0=B0=D0=B9=D0=BB=D0=B0=20=D0=BE=D0=BA=D1=80=D1=83=D0=B6=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- get_data.py | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index c48f48e..e4480fa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ .env /.venv /logs/* -/__pycache__ \ No newline at end of file +*/__pycache__ \ No newline at end of file diff --git a/get_data.py b/get_data.py index 19e5746..fa21e2b 100644 --- a/get_data.py +++ b/get_data.py @@ -25,7 +25,13 @@ _stop_event = Event() _worker_thread: Thread | None = None # Загружаем переменные из .env -load_dotenv(dotenv_path="/mnt/khl/.env") +if load_dotenv(dotenv_path="/mnt/khl/.env",verbose=True): + print("Добавить в лог что был найден файл окружения!!") + pass +else: + load_dotenv() + print("Добавить в лог что не был найден файл окружения!!") + api_user = os.getenv("API_USER") api_pass = os.getenv("API_PASS") league = os.getenv("LEAGUE")