ThreadPoolExecutor = 1

This commit is contained in:
2025-10-22 16:00:58 +03:00
parent 6d3d5d3702
commit b8b79b5f58

View File

@@ -848,7 +848,7 @@ def Json_Team_Generation(who, data, stop_event):
player_season_stat = []
player_career_stat = []
coach_stat = []
with ThreadPoolExecutor() as pool:
with ThreadPoolExecutor(max_workers=1) as pool:
player_season_stat_temp = [
pool.submit(Player_Stat_Season, player_id, data["season"])
for player_id in player_ids