From: Aleksander Ɓukasz Date: Wed, 13 Nov 2013 12:21:28 +0000 (+0100) Subject: Removing empty lines from admin report csv file X-Git-Url: https://git.mdrn.pl/edumed.git/commitdiff_plain/0ab8851b27ed50768f825be42fc04c7f576c94fb?ds=sidebyside Removing empty lines from admin report csv file --- diff --git a/wtem/templates/wtem/admin_report.csv b/wtem/templates/wtem/admin_report.csv index 5680d44..0bdaf57 100644 --- a/wtem/templates/wtem/admin_report.csv +++ b/wtem/templates/wtem/admin_report.csv @@ -1,4 +1,2 @@ -{% load wtem_csv %} -{% spaceless %} -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}}{% for exercise_id in exercise_numbers %}{% csv_row_fragment exercise_id submission submissionsSet %}{% endfor %}{% endfor %}{% endspaceless %} \ No newline at end of file +{% 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}}{% for exercise_id in exercise_ids %},{% csv_row_fragment exercise_id submission submissionsSet %}{% endfor %}{% endfor %} \ No newline at end of file