This commit is contained in:
2025-10-27 17:49:58 +03:00
parent 858ed5c6a7
commit 8fa3acf3f2

View File

@@ -1204,7 +1204,7 @@ def Json_Team_Generation(
), # 99 — по умолчанию
)
out_path = Path(out_dir) / f"{who}.json"
atomic_write_json(out_path, sorted_team)
atomic_write_json(sorted_team, out_path)
logging.info("Сохранил payload: {out_path}")
top_sorted_team = sorted(
@@ -1224,7 +1224,7 @@ def Json_Team_Generation(
item["foul"] = "" if item["num"] == "" else item["foul"]
out_path = Path(out_dir) / f"top{who.replace('t','T')}.json"
atomic_write_json(out_path, top_sorted_team)
atomic_write_json(top_sorted_team, out_path)
logging.info("Сохранил payload: {out_path}")
started_team = sorted(
@@ -1237,7 +1237,7 @@ def Json_Team_Generation(
)
out_path = Path(out_dir) / f"started_{who}.json"
atomic_write_json(out_path, started_team)
atomic_write_json(started_team, out_path)
logging.info("Сохранил payload: {out_path}")
@@ -1533,7 +1533,7 @@ def Team_Both_Stat(merged: dict, *, out_dir: str = "static") -> None:
)
out_path = Path(out_dir) / "team_stats.json"
atomic_write_json(out_path, result_json)
atomic_write_json(result_json, out_path)
logging.info("Сохранил payload: {out_path}")
logger.debug("Успешно записаны данные в team_stats.json")