From efa4812b090b5abbcb8c10a5956555fc7c4c2aef Mon Sep 17 00:00:00 2001 From: Alexey Barabanov Date: Fri, 24 Oct 2025 13:59:59 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D0=B0=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B2=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=BF=D1=80=D0=BE=D0=B1=D0=BB?= =?UTF-8?q?=D0=B5=D0=BC=D0=B0=20=D0=BA=D0=BE=D0=B2=D1=8B=D1=87=D0=B5=D0=BA?= =?UTF-8?q?=20=D0=B2=20=D0=B0=D1=80=D0=B3=D1=83=D0=BC=D0=B5=D0=BD=D1=82?= =?UTF-8?q?=D0=B5=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B4=D0=BE=D0=B2=D0=B0=D0=B5?= =?UTF-8?q?=D0=BC=D0=BE=D0=BC=20deploy.sh=20=D0=B2=20data.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.sh | 2 +- get_data.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/deploy.sh b/deploy.sh index bafdf7d..6d331fc 100755 --- a/deploy.sh +++ b/deploy.sh @@ -205,7 +205,7 @@ Type=simple User=root WorkingDirectory=/root/RFB Environment=PATH=/root/RFB/.venv/bin -ExecStart=/root/RFB/.venv/bin/python3 /root/RFB/get_data.py --team \"$team\" +ExecStart=/root/RFB/.venv/bin/python3 /root/RFB/get_data.py --team "$team" Restart=always RestartSec=10 StandardOutput=journal diff --git a/get_data.py b/get_data.py index 6513191..a35c7c9 100644 --- a/get_data.py +++ b/get_data.py @@ -103,7 +103,7 @@ LOG_CONFIG = { }, "console": { "class": "logging.StreamHandler", - "level": "DEBUG", + "level": "INFO", "formatter": "simple", "stream": "ext://sys.stdout", }, @@ -1392,12 +1392,13 @@ def main(): "--log-level", type=str, default="INFO", help="DEBUG|INFO|WARNING|ERROR" ) args = parser.parse_args() + print(args) # logger.info(f"Запуск программы пользователем: {MYHOST}") logger.info(f"Запуск с параметрами:\nleague={args.league}\nteam={args.team}\nlang={args.lang}") league = validate_league_or_die(args.league) - team = args.team.strip().lower() + team = args.team.lower() # 1) Узнать последний сезон season = get_last_season_or_die(league, args.lang)