From 2485a894a1c4f9ba3f4c82e4f0e554afc28819cd Mon Sep 17 00:00:00 2001 From: Max Metz Date: Wed, 31 Jul 2024 15:32:48 +0200 Subject: [PATCH] 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 --- src/server/BreCal/notifications/notifier.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server/BreCal/notifications/notifier.py b/src/server/BreCal/notifications/notifier.py index 4e38d7e..1e100c2 100644 --- a/src/server/BreCal/notifications/notifier.py +++ b/src/server/BreCal/notifications/notifier.py @@ -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