From b8b79b5f58d8849aa14ad41e27ec8857f7fa3d6f 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: Wed, 22 Oct 2025 16:00:58 +0300 Subject: [PATCH] ThreadPoolExecutor = 1 --- get_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get_data.py b/get_data.py index e6c42ff..bd88076 100644 --- a/get_data.py +++ b/get_data.py @@ -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