test4
This commit is contained in:
@@ -1204,7 +1204,7 @@ def Json_Team_Generation(
|
|||||||
), # 99 — по умолчанию
|
), # 99 — по умолчанию
|
||||||
)
|
)
|
||||||
out_path = Path(out_dir) / f"{who}.json"
|
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}")
|
logging.info("Сохранил payload: {out_path}")
|
||||||
|
|
||||||
top_sorted_team = sorted(
|
top_sorted_team = sorted(
|
||||||
@@ -1224,7 +1224,7 @@ def Json_Team_Generation(
|
|||||||
item["foul"] = "" if item["num"] == "" else item["foul"]
|
item["foul"] = "" if item["num"] == "" else item["foul"]
|
||||||
|
|
||||||
out_path = Path(out_dir) / f"top{who.replace('t','T')}.json"
|
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}")
|
logging.info("Сохранил payload: {out_path}")
|
||||||
|
|
||||||
started_team = sorted(
|
started_team = sorted(
|
||||||
@@ -1237,7 +1237,7 @@ def Json_Team_Generation(
|
|||||||
)
|
)
|
||||||
|
|
||||||
out_path = Path(out_dir) / f"started_{who}.json"
|
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}")
|
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"
|
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}")
|
logging.info("Сохранил payload: {out_path}")
|
||||||
|
|
||||||
logger.debug("Успешно записаны данные в team_stats.json")
|
logger.debug("Успешно записаны данные в team_stats.json")
|
||||||
|
|||||||
Reference in New Issue
Block a user