From 9244e2fb9c331a86e24b414a2cf18be5ae6a68c8 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 12 Sep 2022 10:06:45 +0200 Subject: [PATCH] sorting lines --- changedetectionio/model/Watch.py | 54 ++++++++++++++++---------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/changedetectionio/model/Watch.py b/changedetectionio/model/Watch.py index a168aabd..9c12283b 100644 --- a/changedetectionio/model/Watch.py +++ b/changedetectionio/model/Watch.py @@ -14,42 +14,42 @@ class model(dict): __newest_history_key = None __history_n=0 __base_config = { - 'url': None, - 'tag': None, - 'last_checked': 0, - 'paused': False, - 'last_viewed': 0, # history key value of the last viewed via the [diff] link + # Custom notification content + # Re #110, so then if this is set to None, we know to use the default value instead + # Requires setting to None on submit if it's the same as the default + # Should be all None by default, so we use the system default in this case. + #'history': {}, # Dict of timestamp and output stripped filename #'newest_history_key': 0, - 'title': None, - 'previous_md5': False, - 'uuid': str(uuid_builder.uuid4()), - 'headers': {}, # Extra headers to send 'body': None, - 'method': 'GET', - #'history': {}, # Dict of timestamp and output stripped filename + 'check_unique_lines': False, # On change-detected, compare against all history if its something new + 'consecutive_filter_failures': 0, # Every time the CSS/xPath filter cannot be located, reset when all is fine. + 'css_filter': '', + 'extract_text': [], # Extract text by regex after filters + 'extract_title_as_title': False, + 'fetch_backend': None, + 'filter_failure_notification_send': strtobool(os.getenv('FILTER_FAILURE_NOTIFICATION_SEND_DEFAULT', 'True')), + 'headers': {}, # Extra headers to send 'ignore_text': [], # List of text to ignore when calculating the comparison checksum - # Custom notification content - 'notification_urls': [], # List of URLs to add to the notification Queue (Usually AppRise) - 'notification_title': None, + 'last_checked': 0, + 'last_error': False, + 'last_viewed': 0, # history key value of the last viewed via the [diff] link + 'method': 'GET', 'notification_body': None, 'notification_format': default_notification_format_for_watch, 'notification_muted': False, - 'css_filter': '', - 'last_error': False, - 'extract_text': [], # Extract text by regex after filters + 'notification_title': None, + 'notification_urls': [], # List of URLs to add to the notification Queue (Usually AppRise) + 'paused': False, + 'previous_md5': False, + 'proxy': None, # Preferred proxy connection 'subtractive_selectors': [], - 'trigger_text': [], # List of text or regex to wait for until a change is detected + 'tag': None, 'text_should_not_be_present': [], # Text that should not present - 'fetch_backend': None, - '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 - 'proxy': None, # Preferred proxy connection - # Re #110, so then if this is set to None, we know to use the default value instead - # Requires setting to None on submit if it's the same as the default - # Should be all None by default, so we use the system default in this case. 'time_between_check': {'weeks': None, 'days': None, 'hours': None, 'minutes': None, 'seconds': None}, + 'title': None, + 'trigger_text': [], # List of text or regex to wait for until a change is detected + 'url': None, + 'uuid': str(uuid_builder.uuid4()), 'webdriver_delay': None, 'webdriver_js_execute_code': None, # Run before change-detection }