From a2fe7f79cc43a48fe68acb79695fcae9ff1c089e Mon Sep 17 00:00:00 2001 From: Jokob-sk Date: Mon, 30 Jan 2023 23:12:19 +1100 Subject: [PATCH] Rework of notification templates 0.2 --- back/pialert.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/back/pialert.py b/back/pialert.py index 947a8d79..7fcbf133 100755 --- a/back/pialert.py +++ b/back/pialert.py @@ -2215,7 +2215,7 @@ def send_notifications (): for header in headers: html = format_table(html, header, thProps) - mail_text = mail_html.replace ('', text + '\n') + mail_text = mail_text.replace ('', text + '\n') mail_html = mail_html.replace ('', html) # collect "internet" (IP changes) for the webhook json @@ -2249,7 +2249,7 @@ def send_notifications (): for header in headers: html = format_table(html, header, thProps) - mail_text = mail_html.replace ('', text + '\n') + mail_text = mail_text.replace ('', text + '\n') mail_html = mail_html.replace ('', html) # collect "new_devices" for the webhook json @@ -2284,7 +2284,7 @@ def send_notifications (): for header in headers: html = format_table(html, header, thProps) - mail_text = mail_html.replace ('', text + '\n') + mail_text = mail_text.replace ('', text + '\n') mail_html = mail_html.replace ('', html) # collect "down_devices" for the webhook json @@ -2319,7 +2319,7 @@ def send_notifications (): for header in headers: html = format_table(html, header, thProps) - mail_text = mail_html.replace ('', text + '\n') + mail_text = mail_text.replace ('', text + '\n') mail_html = mail_html.replace ('', html) # collect "events" for the webhook json