From b8ecfff861c65f9131a655d162eb926d24825373 Mon Sep 17 00:00:00 2001 From: Jakob Stadler <127443735+Jakob-Stadler@users.noreply.github.com> Date: Sat, 28 Jun 2025 09:13:41 +0000 Subject: [PATCH] Data save - Solving JSON DB saving bug (#3286 #3260 #3259) --- changedetectionio/store.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/store.py b/changedetectionio/store.py index a7b7d809..020b2999 100644 --- a/changedetectionio/store.py +++ b/changedetectionio/store.py @@ -412,7 +412,7 @@ class ChangeDetectionStore: with open(self.json_store_path+".tmp", 'w') as json_file: # Use compact JSON in production for better performance json.dump(data, json_file, indent=2) - os.replace(self.json_store_path+".tmp", self.json_store_path) + os.replace(self.json_store_path+".tmp", self.json_store_path) except Exception as e: logger.error(f"Error writing JSON!! (Main JSON file save was skipped) : {str(e)}")