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_results.py
diff --git
a/wtem/management/commands/wtem_send_results.py
b/wtem/management/commands/wtem_send_results.py
index
f4748c6
..
ddc7aa4
100644
(file)
--- a/
wtem/management/commands/wtem_send_results.py
+++ b/
wtem/management/commands/wtem_send_results.py
@@
-14,7
+14,8
@@
from wtem.models import Submission
def get_submissions():
return sorted(Submission.objects.exclude(answers=None), key=lambda s: -s.final_result)
def get_submissions():
return sorted(Submission.objects.exclude(answers=None), key=lambda s: -s.final_result)
-minimum = 63.06
+
+minimum = 67.33
class Command(BaseCommand):
class Command(BaseCommand):
@@
-72,7
+73,7
@@
class Command(BaseCommand):
template = 'results_student_failed.txt'
else:
template = 'results_student_passed.txt'
template = 'results_student_failed.txt'
else:
template = 'results_student_passed.txt'
- message = render_to_string('wtem/' + template, dict(final_result=
round(submission.final_result, 2)
))
+ message = render_to_string('wtem/' + template, dict(final_result=
submission.final_result
))
self.send_message(message, subject, submission.email)
self.sum_up()
self.send_message(message, subject, submission.email)
self.sum_up()
@@
-94,7
+95,7
@@
class Command(BaseCommand):
self.sum_up()
self.sum_up()
- def sum_up(self):
+ def sum_up(self):
self.stdout.write('sent: %s, failed: %s' % (self.sent, self.failed))
def send_message(self, message, subject, email):
self.stdout.write('sent: %s, failed: %s' % (self.sent, self.failed))
def send_message(self, message, subject, email):