From 1f27865fdf3aebff7e99e5cc128e91e916f79f4d Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Wed, 27 Jul 2022 00:01:51 +0200 Subject: [PATCH] Filter failure notification send default enable now controlled by setting Env var --- changedetectionio/model/Watch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/changedetectionio/model/Watch.py b/changedetectionio/model/Watch.py index 0e80d41b..87235b0a 100644 --- a/changedetectionio/model/Watch.py +++ b/changedetectionio/model/Watch.py @@ -1,5 +1,6 @@ import os import uuid as uuid_builder +from distutils.util import strtobool minimum_seconds_recheck_time = int(os.getenv('MINIMUM_SECONDS_RECHECK_TIME', 60)) mtable = {'seconds': 1, 'minutes': 60, 'hours': 3600, 'days': 86400, 'weeks': 86400 * 7} @@ -41,7 +42,7 @@ class model(dict): 'trigger_text': [], # List of text or regex to wait for until a change is detected 'text_should_not_be_present': [], # Text that should not present 'fetch_backend': None, - 'filter_failure_notification_send': True, + 'filter_failure_notification_send': strtobool(os.getenv('FILTER_FAILURE_NOTIFICATION_SEND_DEFAULT', 'True')), 'consecutive_filter_failures': 0, # Every time the CSS/xPath filter cannot be located, reset when all is fine. 'extract_title_as_title': False, 'check_unique_lines': False, # On change-detected, compare against all history if its something new