From 14324bd506ac68b57be5e748675078299cf2e671 Mon Sep 17 00:00:00 2001 From: Jonas Havelka Date: Tue, 19 Jan 2021 22:33:38 +0100 Subject: [PATCH] =?UTF-8?q?Do=20zas=C3=ADl=C3=A1n=C3=AD=20=C4=8D=C3=ADsla?= =?UTF-8?q?=20e-mailem=20p=C5=99id=C3=A1no=20rozhodnut=C3=AD=20=C5=99e?= =?UTF-8?q?=C5=A1itele.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seminar/models.py b/seminar/models.py index a15aaaf9..797a215c 100644 --- a/seminar/models.py +++ b/seminar/models.py @@ -641,7 +641,7 @@ class Cislo(SeminarModelBase): 'Vaše M&M\n'.format(odkaz) # Prijemci e-mailu - emaily = map(lambda r: r.osoba.email, aktivniResitele(self )) + emaily = map(lambda r: r.osoba.email, filter(lambda r: r.zasilat_cislo_emailem, aktivniResitele(self))) if not settings.POSLI_MAILOVOU_NOTIFIKACI: print("Poslal bych upozornění na tyto adresy: ", " ".join(emaily))