From 5d5d71af799f3d3ede5dda9bd2e945ea8918d358 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=AE=D1=80=D0=B8=D0=B9=20=D0=A7=D0=B5=D1=80=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=BA=D0=BE?= Date: Sun, 4 Oct 2026 15:08:31 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BD=D0=B0=20=D1=82=D1=83=D1=80=D0=BD=D0=B8=D1=80?= =?UTF-8?q?=D0=BD=D0=B0=D1=8F=20=D1=82=D0=B0=D0=B1=D0=BB=D0=B8=D1=86=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.sh | 4 ++-- get_data.py | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index b2d7d14..4fb568a 100755 --- a/deploy.sh +++ b/deploy.sh @@ -314,8 +314,8 @@ detect_team() { ["10.10.35.25"]="avtodor" ["10.10.35.26"]="zenit" ["10.10.35.27"]="samara" - ["10.10.35.28"]="mba-mai" - ["10.10.35.29"]="Pari Nizhny Novgorod" + ["10.10.35.28"]="mba" + ["10.10.35.29"]="dynamo" ["10.10.35.30"]="unics" ["10.10.35.31"]="enisey" ) diff --git a/get_data.py b/get_data.py index 3ec1986..91a4326 100644 --- a/get_data.py +++ b/get_data.py @@ -2982,6 +2982,9 @@ async def regular_standings(): ) df["plus_minus"] = tg_plus - tg_minus + + # Превращаем NaN в None, который корректно отдаётся как JSON null. + df = df.astype(object).where(pd.notna(df), None) standings_payload = df.to_dict(orient="records") return maybe_clear_for_vmix(standings_payload)