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