again, overwriting the previous email assignment. Unless the testing phase is completed, no mails shall be sent to users except for the test-mail of bsmd

This commit is contained in:
Max Metz 2024-07-31 15:32:48 +02:00
parent e2c532bd64
commit 2485a894a1

View File

@ -415,6 +415,9 @@ class Notifier():
# additionally, always inform the BSMD
email_tgts.append("bremencalling@bsmd.de") # #TODO: for testing, use "bremencalling@bsmd.de". For live system, use "report@bsmd.de"
# #TODO_development: overwrite the recipients. Only send to 'bremencalling@bsmd.de' until the testing phase has succeeded.
email_tgts = ["bremencalling@bsmd.de" for tgt in email_tgts]
# avoid multi-mails, when (for some reason) multiple users share the same email address.
email_tgts = list(set(email_tgts))
return email_tgts