def handle_to_students(self, *args, **options):
self.stdout.write('>>> Sending results to students')
- subject = 'Wyniki II etapu Wielkiego Turnieju Edukacji Medialnej'
+ subject = 'Wyniki I etapu Olimpiady Cyfrowej'
for submission in get_submissions():
if options['only_to'] and submission.email != options['only_to']:
def handle_to_teachers(self, *args, **options):
self.stdout.write('>>> Sending results to teachers')
- subject = 'Wyniki II etapu Wielkiego Turnieju Edukacji Medialnej'
- failed = sent = 0
+ subject = 'Wyniki I etapu Olimpiady Cyfrowej'
submissions_by_contact = dict()
if t == 'edumed_prawdafalsz':
toret = 0
for idx, statement in enumerate(exercise['statements']):
+ if statement[1] == 'ignore':
+ continue
if answer[idx] == 'true':
given = True
elif answer[idx] == 'false':
{% load wtem_csv %}email,nazwisko,imie,suma{% for exercise_id in exercise_ids %}{% csv_header exercise_id submissionsSet %}{% endfor %}{% for submission in submissionsSet.submissions %}
-{{submission.email}},{{submission.last_name}},{{submission.first_name}},{{submission.final_result_as_string}}{% for exercise_id in exercise_ids %},{% csv_row_fragment exercise_id submission submissionsSet %}{% endfor %}{% endfor %}
\ No newline at end of file
+{{submission.email}},{{submission.last_name}},{{submission.first_name}},"{{submission.contact.body.institution}} {{submission.contact.body.institution_address}}",{{submission.final_result_as_string}}{% for exercise_id in exercise_ids %},{% csv_row_fragment exercise_id submission submissionsSet %}{% endfor %}{% endfor %}
\ No newline at end of file