school email in csv
authorJan Szejko <janek37@gmail.com>
Fri, 25 Nov 2016 16:06:45 +0000 (17:06 +0100)
committerJan Szejko <janek37@gmail.com>
Fri, 25 Nov 2016 16:06:45 +0000 (17:06 +0100)
wtem/templates/wtem/admin_report.csv

index c436b2c..32d7d27 100644 (file)
@@ -1,2 +1,2 @@
-{% load wtem_csv %}email,nazwisko,imie,szkola,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.school}}",{{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
+{% load wtem_csv %}email,nazwisko,imie,szkola_email,szkola,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.contact.body.school_email}},"{{submission.school}}",{{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