From 5470df8da94b6a290cc577899ad3a02df44ec4bf 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: Mon, 27 Oct 2025 17:53:18 +0300 Subject: [PATCH] test5 --- get_data_new.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/get_data_new.py b/get_data_new.py index 0649478..6203316 100644 --- a/get_data_new.py +++ b/get_data_new.py @@ -15,7 +15,6 @@ import logging.config from typing import Any, Dict, List from zoneinfo import ZoneInfo import threading -from pathlib import Path from concurrent.futures import ThreadPoolExecutor, as_completed HOST = "https://ref.russiabasket.org" @@ -1203,7 +1202,7 @@ def Json_Team_Generation( x.get("startRole", 99), 99 ), # 99 — по умолчанию ) - out_path = Path(out_dir) / f"{who}.json" + out_path = f"{who}.json" atomic_write_json(sorted_team, out_path) logging.info("Сохранил payload: {out_path}") @@ -1223,7 +1222,7 @@ def Json_Team_Generation( item["pts"] = "" if item["num"] == "" else item["pts"] item["foul"] = "" if item["num"] == "" else item["foul"] - out_path = Path(out_dir) / f"top{who.replace('t','T')}.json" + out_path = f"top{who.replace('t','T')}.json" atomic_write_json(top_sorted_team, out_path) logging.info("Сохранил payload: {out_path}") @@ -1236,7 +1235,7 @@ def Json_Team_Generation( reverse=False, ) - out_path = Path(out_dir) / f"started_{who}.json" + out_path = f"started_{who}.json" atomic_write_json(started_team, out_path) logging.info("Сохранил payload: {out_path}") @@ -1532,7 +1531,7 @@ def Team_Both_Stat(merged: dict, *, out_dir: str = "static") -> None: } ) - out_path = Path(out_dir) / "team_stats.json" + out_path = "team_stats.json" atomic_write_json(result_json, out_path) logging.info("Сохранил payload: {out_path}")