Compare commits

...

2 Commits

Author SHA1 Message Date
dgtlmoon
58dde10e40 0.48.02 2024-12-16 16:07:11 +01:00
dgtlmoon
8e9bf4a113 Notifications - "Send test" was not always following "System default notification format" 2024-12-16 15:15:43 +01:00
2 changed files with 7 additions and 1 deletions

View File

@@ -2,7 +2,7 @@
# Read more https://github.com/dgtlmoon/changedetection.io/wiki
__version__ = '0.48.01'
__version__ = '0.48.02'
from changedetectionio.strtobool import strtobool
from json.decoder import JSONDecodeError

View File

@@ -28,6 +28,8 @@ class update_worker(threading.Thread):
def queue_notification_for_watch(self, notification_q, n_object, watch):
from changedetectionio import diff
from changedetectionio.notification import default_notification_format_for_watch
dates = []
trigger_text = ''
@@ -44,6 +46,10 @@ class update_worker(threading.Thread):
else:
snapshot_contents = "No snapshot/history available, the watch should fetch atleast once."
# If we ended up here with "System default"
if n_object.get('notification_format') == default_notification_format_for_watch:
n_object['notification_format'] = self.datastore.data['settings']['application'].get('notification_format')
html_colour_enable = False
# HTML needs linebreak, but MarkDown and Text can use a linefeed
if n_object.get('notification_format') == 'HTML':