From cfcc0b3c7eebc3e6c1c7f9fc70440c053fa27f2d Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 4 Feb 2016 18:06:30 +0100 Subject: [PATCH] fix sub --- .../management/commands/teleforma-send-subscription-email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teleforma/management/commands/teleforma-send-subscription-email.py b/teleforma/management/commands/teleforma-send-subscription-email.py index 403eceef..965393d1 100644 --- a/teleforma/management/commands/teleforma-send-subscription-email.py +++ b/teleforma/management/commands/teleforma-send-subscription-email.py @@ -56,7 +56,7 @@ class Command(BaseCommand): translation.activate(self.language_code) for student in students: - if student.is_subscribed and not student.confirmation_sent and not student.user.is_active and student.user.email and student.period == period: + if student.is_subscribed and not student.confirmation_sent and student.user.is_active and student.user.email and student.period == period: self.email(student) student.confirmation_sent = True student.save() -- 2.39.5