X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/3ca90d4aed87ed8b39c4984a290de6a3b898a7bd..f09fd4c98021b75d6d6c288537946703eb706d04:/wtem/management/commands/notify_teachers.py?ds=sidebyside 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})