убрал indent=4. говорят это замедляет запись в json, если там много данных, а там много данных
This commit is contained in:
@@ -1003,7 +1003,7 @@ def Play_By_Play(data: dict) -> None:
|
||||
os.makedirs(directory, exist_ok=True)
|
||||
filepath = os.path.join(directory, "play_by_play.json")
|
||||
|
||||
df_goals.to_json(filepath, orient="records", force_ascii=False, indent=4)
|
||||
df_goals.to_json(filepath, orient="records", force_ascii=False)
|
||||
logger.debug("Успешно положил данные об play-by-play в файл")
|
||||
except Exception as e:
|
||||
logger.error(f"Ошибка в Play_By_Play: {e}", exc_info=True)
|
||||
|
||||
Reference in New Issue
Block a user