fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update librarian
[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
fdc539c
..
d2dc147
100644
(file)
--- 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)
def get_submissions():
return sorted(Submission.objects.exclude(answers=None).all(), key=lambda s: -s.final_result)
-minimum = 5
5
+minimum = 5
2
class Command(BaseCommand):
class Command(BaseCommand):
@@
-37,7
+37,7
@@
class Command(BaseCommand):
action='store',
dest='only_to',
default=None,
action='store',
dest='only_to',
default=None,
- help='Send emails
to student
s'),
+ help='Send emails
only to listed addresse
s'),
)
def handle(self, *args, **options):
)
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')
def handle_to_students(self, *args, **options):
self.stdout.write('>>> Sending results to students')
- subject = 'Wyniki I etapu Wielkiego Turnieju Edukacji Medialnej'
+ subject = 'Wyniki I
I
etapu Wielkiego Turnieju Edukacji Medialnej'
for submission in get_submissions():
if options['only_to'] and submission.email != options['only_to']:
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')
def handle_to_teachers(self, *args, **options):
self.stdout.write('>>> Sending results to teachers')
- subject = 'Wyniki I etapu Wielkiego Turnieju Edukacji Medialnej'
+ subject = 'Wyniki I
I
etapu Wielkiego Turnieju Edukacji Medialnej'
failed = sent = 0
submissions_by_contact = dict()
failed = sent = 0
submissions_by_contact = dict()