fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update send results
[edumed.git]
/
wtem
/
management
/
commands
/
wtem_send_keys.py
diff --git
a/wtem/management/commands/wtem_send_keys.py
b/wtem/management/commands/wtem_send_keys.py
index
8e26624
..
4a1760c
100644
(file)
--- a/
wtem/management/commands/wtem_send_keys.py
+++ b/
wtem/management/commands/wtem_send_keys.py
@@
-36,7
+36,6
@@
class Command(BaseCommand):
def send_keys(self, *args, **options):
sent = 0
def send_keys(self, *args, **options):
sent = 0
- skipped = 0
failed = 0
submissions = Submission.objects.all()
failed = 0
submissions = Submission.objects.all()
@@
-52,7
+51,7
@@
class Command(BaseCommand):
self.send_key(submission)
except Exception as e:
failed += 1
self.send_key(submission)
except Exception as e:
failed += 1
- self.stdout.write('failed sending to: ' + submission.email + ' - ' +
st
r(e))
+ self.stdout.write('failed sending to: ' + submission.email + ' - ' +
rep
r(e))
else:
submission.key_sent = True
submission.save()
else:
submission.key_sent = True
submission.save()
@@
-64,6
+63,6
@@
class Command(BaseCommand):
def send_key(self, submission):
self.stdout.write('>>> sending to ' + submission.email)
send_mail(
def send_key(self, submission):
self.stdout.write('>>> sending to ' + submission.email)
send_mail(
- subject="Olimpiada Cyfrowa - Twój link do
egzamin
u",
+ subject="Olimpiada Cyfrowa - Twój link do
zadań I etap
u",
body=render_to_string('wtem/email_key.txt', dict(submission=submission)),
to=[submission.email])
body=render_to_string('wtem/email_key.txt', dict(submission=submission)),
to=[submission.email])