From 59b8971a9609ec3891533ea3bb9931076b7c52d8 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sat, 7 Sep 2024 15:42:58 +0200 Subject: [PATCH] test and label tweaks --- changedetectionio/forms.py | 2 +- changedetectionio/processors/text_json_diff/processor.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/changedetectionio/forms.py b/changedetectionio/forms.py index b0b19f99..abc2fc4f 100644 --- a/changedetectionio/forms.py +++ b/changedetectionio/forms.py @@ -479,7 +479,7 @@ class processor_text_json_diff_form(commonSettingsForm): body = TextAreaField('Request body', [validators.Optional()]) method = SelectField('Request method', choices=valid_method, default=default_method) ignore_status_codes = BooleanField('Ignore status codes (process non-2xx status codes as normal)', default=False) - check_unique_lines = BooleanField('Only trigger when unique lines appear', default=False) + check_unique_lines = BooleanField('Only trigger when unique lines appear in all history', default=False) sort_text_alphabetically = BooleanField('Sort text alphabetically', default=False) filter_text_added = BooleanField('Added lines', default=True) diff --git a/changedetectionio/processors/text_json_diff/processor.py b/changedetectionio/processors/text_json_diff/processor.py index 7fdc112b..115cb6b1 100644 --- a/changedetectionio/processors/text_json_diff/processor.py +++ b/changedetectionio/processors/text_json_diff/processor.py @@ -236,7 +236,7 @@ class perform_site_check(difference_detection_processor): # We had some content, but no differences were found # Store our new file as the MD5 so it will trigger in the future c = hashlib.md5(text_content_before_ignored_filter.translate(None, b'\r\n\t ')).hexdigest() - return False, {'previous_md5': c}, stripped_text_from_html.encode('utf-8') + return False, {'previous_md5': c}, stripped_text_from_html.encode('utf-8'), stripped_text_from_html.encode('utf-8') else: stripped_text_from_html = rendered_diff