X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/6c9978c5bf8b1ef20871557c22b8b02df647d700..1d3c54755043df7ce059ee5a445330522c9ebce1:/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 fdc539c..d2dc147 100644 --- a/wtem/management/commands/wtem_send_results.py +++ b/wtem/management/commands/wtem_send_results.py @@ -14,7 +14,7 @@ from wtem.models import Submission def get_submissions(): return sorted(Submission.objects.exclude(answers=None).all(), key=lambda s: -s.final_result) -minimum = 55 +minimum = 52 class Command(BaseCommand): @@ -37,7 +37,7 @@ class Command(BaseCommand): action='store', dest='only_to', default=None, - help='Send emails to students'), + help='Send emails only to listed addresses'), ) def handle(self, *args, **options): @@ -50,7 +50,7 @@ class Command(BaseCommand): def handle_to_students(self, *args, **options): self.stdout.write('>>> Sending results to students') - subject = 'Wyniki I etapu Wielkiego Turnieju Edukacji Medialnej' + subject = 'Wyniki II etapu Wielkiego Turnieju Edukacji Medialnej' for submission in get_submissions(): if options['only_to'] and submission.email != options['only_to']: @@ -67,7 +67,7 @@ class Command(BaseCommand): def handle_to_teachers(self, *args, **options): self.stdout.write('>>> Sending results to teachers') - subject = 'Wyniki I etapu Wielkiego Turnieju Edukacji Medialnej' + subject = 'Wyniki II etapu Wielkiego Turnieju Edukacji Medialnej' failed = sent = 0 submissions_by_contact = dict()