From 7dfc908ecb9f8eb8d9bb4ecfda5d22c1678a4437 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Fri, 19 Aug 2022 11:35:12 +0200 Subject: [PATCH] Some defaults --- changedetectionio/model/Watch.py | 7 ++++--- changedetectionio/store.py | 6 ++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/changedetectionio/model/Watch.py b/changedetectionio/model/Watch.py index c59dd1daa..ce82ed7c7 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 00e568df1..046115fed 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