generated from nathanwoodburn/python-webserver-template
fix: Send notifications from alternative email addresses
All checks were successful
Build Docker / BuildImage (push) Successful in 30s
All checks were successful
Build Docker / BuildImage (push) Successful in 30s
This commit is contained in:
parent
3b118e6923
commit
415806e852
@ -205,6 +205,9 @@ def save_notification_settings(email, webhook, email_alert):
|
|||||||
def get_notification_settings(email):
|
def get_notification_settings(email):
|
||||||
if not os.path.exists(notification_file):
|
if not os.path.exists(notification_file):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
# Reformat email
|
||||||
|
email = email.split('@')[0] + '@login.hns.au'
|
||||||
|
|
||||||
with open(notification_file, "r") as f:
|
with open(notification_file, "r") as f:
|
||||||
data = json.load(f)
|
data = json.load(f)
|
||||||
|
Loading…
Reference in New Issue
Block a user