From f1cf20958778a8d09d8174c5266c2e193b5f8f9e Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Wed, 14 Dec 2022 14:28:43 +0100 Subject: [PATCH] Fix logic --- changedetectionio/fetch_site_status.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/changedetectionio/fetch_site_status.py b/changedetectionio/fetch_site_status.py index 66cdd6e35..7dfd38b66 100644 --- a/changedetectionio/fetch_site_status.py +++ b/changedetectionio/fetch_site_status.py @@ -122,8 +122,10 @@ class perform_site_check(): self.screenshot = fetcher.screenshot self.xpath_data = fetcher.xpath_data + # Watches added automatically in the queue manager will skip if its the same checksum as the previous run + # Saves a lot of CPU + update_obj['previous_md5_before_filters'] = hashlib.md5(fetcher.content.encode('utf-8')).hexdigest() if skip_when_checksum_same: - update_obj['previous_md5_before_filters'] = hashlib.md5(fetcher.content.encode('utf-8')).hexdigest() if update_obj['previous_md5_before_filters'] == watch.get('previous_md5_before_filters'): raise content_fetcher.checksumFromPreviousCheckWasTheSame()