fnp
/
edumed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f393f30
)
notify all teachers
author
Jan Szejko
<janek37@gmail.com>
Fri, 17 Nov 2017 15:29:28 +0000
(16:29 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Fri, 17 Nov 2017 15:29:28 +0000
(16:29 +0100)
wtem/management/commands/notify_teachers.py
patch
|
blob
|
history
diff --git
a/wtem/management/commands/notify_teachers.py
b/wtem/management/commands/notify_teachers.py
index
354ab43
..
127e204
100644
(file)
--- 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(
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})