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

@ -206,6 +206,9 @@ 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)
if email not in data: