X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/ab9c0166722618cb11f32875341bd3782d1b5401..46ec8f39ae3e726a294a2288e51354ff834ba45e:/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..5a02001 100644 --- a/wtem/management/commands/wtem_send_results.py +++ b/wtem/management/commands/wtem_send_results.py @@ -72,7 +72,7 @@ class Command(BaseCommand): 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() @@ -94,7 +94,7 @@ class Command(BaseCommand): 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):