notify all teachers
authorJan Szejko <janek37@gmail.com>
Fri, 17 Nov 2017 15:29:28 +0000 (16:29 +0100)
committerJan Szejko <janek37@gmail.com>
Fri, 17 Nov 2017 15:29:28 +0000 (16:29 +0100)
wtem/management/commands/notify_teachers.py

index 354ab43..127e204 100644 (file)
@@ -25,7 +25,7 @@ class Command(BaseCommand):
             unconfirmed = []
             for similar_contact in Contact.objects.filter(contact=contact.contact):
                 unconfirmed += list(Confirmation.objects.filter(
             unconfirmed = []
             for similar_contact in Contact.objects.filter(contact=contact.contact):
                 unconfirmed += list(Confirmation.objects.filter(
-                    contact=similar_contact, confirmed=False, contact__created_at__lt=threshold))
+                    contact=similar_contact, confirmed=False))  # contact__created_at__lt=threshold))
             if not unconfirmed:
                 continue
             message = render_to_string(message_template, {'unconfirmed': unconfirmed})
             if not unconfirmed:
                 continue
             message = render_to_string(message_template, {'unconfirmed': unconfirmed})