From ddd7b2772deb05e864a9349b306c9fa9ffc2f789 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sat, 12 Feb 2022 22:48:15 +0100 Subject: [PATCH] for now dont bother renaming snapshot --- changedetectionio/store.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/changedetectionio/store.py b/changedetectionio/store.py index 1ec9fbc1..9d774b1e 100644 --- a/changedetectionio/store.py +++ b/changedetectionio/store.py @@ -366,17 +366,13 @@ class ChangeDetectionStore: # result_obj from fetch_site_status.run() def save_history_text(self, watch_uuid, contents): import uuid - import content_fetcher output_path = "{}/{}".format(self.datastore_path, watch_uuid) # Incase the operator deleted it, check and create. if not os.path.isdir(output_path): mkdir(output_path) - if (content_fetcher.supported_binary_type(self.data['watching'][watch_uuid]['content-type'])): - suffix = ".bin" - else: - suffix = "stripped.txt" + suffix = "stripped.txt" fname = "{}/{}.{}".format(output_path, uuid.uuid4(), suffix) with open(fname, 'wb') as f: