fix: Send notifications from alternative email addresses
All checks were successful
Build Docker / BuildImage (push) Successful in 30s

This commit is contained in:
Nathan Woodburn 2024-10-15 10:16:19 +11:00
parent 3b118e6923
commit 415806e852
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -205,6 +205,9 @@ def save_notification_settings(email, webhook, email_alert):
def get_notification_settings(email):
if not os.path.exists(notification_file):
return False
# Reformat email
email = email.split('@')[0] + '@login.hns.au'
with open(notification_file, "r") as f:
data = json.load(f)