From 06ab34b6af11ffe342d7c6cf77a755cf960811d7 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Tue, 16 Aug 2022 16:53:15 +0200 Subject: [PATCH] Visual selector data not being saved by refactor --- changedetectionio/store.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/changedetectionio/store.py b/changedetectionio/store.py index 5c3aedad..951025a7 100644 --- a/changedetectionio/store.py +++ b/changedetectionio/store.py @@ -363,9 +363,9 @@ class ChangeDetectionStore: def save_xpath_data(self, watch_uuid, data, as_error=False): if as_error: - target_path = os.path.join(self.datastore_path, watch_uuid, "elements.json") - else: target_path = os.path.join(self.datastore_path, watch_uuid, "elements-error.json") + else: + target_path = os.path.join(self.datastore_path, watch_uuid, "elements.json") with open(target_path, 'w') as f: f.write(json.dumps(data))