test5
This commit is contained in:
@@ -15,7 +15,6 @@ import logging.config
|
|||||||
from typing import Any, Dict, List
|
from typing import Any, Dict, List
|
||||||
from zoneinfo import ZoneInfo
|
from zoneinfo import ZoneInfo
|
||||||
import threading
|
import threading
|
||||||
from pathlib import Path
|
|
||||||
from concurrent.futures import ThreadPoolExecutor, as_completed
|
from concurrent.futures import ThreadPoolExecutor, as_completed
|
||||||
|
|
||||||
HOST = "https://ref.russiabasket.org"
|
HOST = "https://ref.russiabasket.org"
|
||||||
@@ -1203,7 +1202,7 @@ def Json_Team_Generation(
|
|||||||
x.get("startRole", 99), 99
|
x.get("startRole", 99), 99
|
||||||
), # 99 — по умолчанию
|
), # 99 — по умолчанию
|
||||||
)
|
)
|
||||||
out_path = Path(out_dir) / f"{who}.json"
|
out_path = f"{who}.json"
|
||||||
atomic_write_json(sorted_team, out_path)
|
atomic_write_json(sorted_team, out_path)
|
||||||
logging.info("Сохранил payload: {out_path}")
|
logging.info("Сохранил payload: {out_path}")
|
||||||
|
|
||||||
@@ -1223,7 +1222,7 @@ def Json_Team_Generation(
|
|||||||
item["pts"] = "" if item["num"] == "" else item["pts"]
|
item["pts"] = "" if item["num"] == "" else item["pts"]
|
||||||
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 = f"top{who.replace('t','T')}.json"
|
||||||
atomic_write_json(top_sorted_team, out_path)
|
atomic_write_json(top_sorted_team, out_path)
|
||||||
logging.info("Сохранил payload: {out_path}")
|
logging.info("Сохранил payload: {out_path}")
|
||||||
|
|
||||||
@@ -1236,7 +1235,7 @@ def Json_Team_Generation(
|
|||||||
reverse=False,
|
reverse=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
out_path = Path(out_dir) / f"started_{who}.json"
|
out_path = f"started_{who}.json"
|
||||||
atomic_write_json(started_team, out_path)
|
atomic_write_json(started_team, out_path)
|
||||||
logging.info("Сохранил payload: {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)
|
atomic_write_json(result_json, out_path)
|
||||||
logging.info("Сохранил payload: {out_path}")
|
logging.info("Сохранил payload: {out_path}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user