diff --git a/changedetectionio/model/Watch.py b/changedetectionio/model/Watch.py index c59dd1da..ce82ed7c 100644 --- a/changedetectionio/model/Watch.py +++ b/changedetectionio/model/Watch.py @@ -32,9 +32,10 @@ class model(dict): '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': default_notification_title, - 'notification_body': default_notification_body, - 'notification_format': default_notification_format, + 'notification_use_default': True, # A checkbox to make it easier to understand if we are using this or not + 'notification_title': None, + 'notification_body': None, + 'notification_format': None, 'notification_muted': False, 'css_filter': '', 'last_error': False, diff --git a/changedetectionio/store.py b/changedetectionio/store.py index 00e568df..046115fe 100644 --- a/changedetectionio/store.py +++ b/changedetectionio/store.py @@ -539,4 +539,10 @@ class ChangeDetectionStore: del(watch['last_changed']) except: continue + return + + # Any watch notification that exactly the same as the default + # Then set the 'notification_use_default' to True and the other values to None + def update_5(self): + # @todo return \ No newline at end of file