From 7211e5994577b0a30db501824f5a3858f43ce28d Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Thu, 29 Jul 2021 08:34:51 +0300 Subject: [PATCH] [~] Refactor --- python/tasks/mlb_player.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/tasks/mlb_player.py b/python/tasks/mlb_player.py index d69c6d6..6648c1c 100644 --- a/python/tasks/mlb_player.py +++ b/python/tasks/mlb_player.py @@ -1810,8 +1810,9 @@ def kernel_29(): '/kaggle/working/kernel_28-output.dir/slice-*/*.json' ) ] + with io.open(t4, 'w') as f: - f.write(json.dumps(t1) + f.write(json.dumps(t1)) with io.open(t4, 'r') as f: t1 = json.load(f)