From 78b1a750a66179d45bef7e477ba2dbf262784527 Mon Sep 17 00:00:00 2001 From: RGBCube <78925721+RGBCube@users.noreply.github.com> Date: Wed, 12 Jan 2022 21:37:54 +0300 Subject: [PATCH] Update db.py --- db.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db.py b/db.py index 1a7cb6d..de83032 100644 --- a/db.py +++ b/db.py @@ -39,7 +39,8 @@ class ClutterDB: with open(self.path_to_json, mode="r") as json_file: json_data = json.load(json_file) with open(self.path_to_json, mode="w") as json_file: - json.dump(json_data.pop(key, None), json_file, indent=4) + json_data.pop(key, None) + json.dump(json_data, json_file, indent=4) def nuke(self): with open(self.path_to_json, mode="w") as json_file: