From 2b1309abdfb27cd6274cd3c5c047f173f6835393 Mon Sep 17 00:00:00 2001 From: RGBCube <78925721+RGBCube@users.noreply.github.com> Date: Wed, 12 Jan 2022 21:06:45 +0300 Subject: [PATCH] indents becuase why not --- db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db.py b/db.py index 6091544..a085987 100644 --- a/db.py +++ b/db.py @@ -19,7 +19,7 @@ class ClutterDB: json_data = json.load(json_file) with open(self.path_to_json, mode="w") as json_file: json_data[key] = value - json.dump(json_data, json_file) + json.dump(json_data, json_file, indent=4) def get(self, key: str, **kwargs): with open(self.path_to_json, mode="r") as json_file: @@ -36,7 +36,7 @@ class ClutterDB: json_data = json.load(json_file) with open(self.path_to_json, mode="w") as json_file: json_data.pop(key, None) - json.dump(json_data, json_file) + json.dump(json_data, json_file, indent=4) def nuke(self): with open(self.path_to_json, mode="w") as json_file: