From f09fd4c98021b75d6d6c288537946703eb706d04 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Fri, 17 Nov 2017 16:29:28 +0100 Subject: [PATCH] notify all teachers --- wtem/management/commands/notify_teachers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wtem/management/commands/notify_teachers.py b/wtem/management/commands/notify_teachers.py index 354ab43..127e204 100644 --- a/wtem/management/commands/notify_teachers.py +++ b/wtem/management/commands/notify_teachers.py @@ -25,7 +25,7 @@ class Command(BaseCommand): 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}) -- 2.20.1