diff options
Diffstat (limited to 'exam/management/commands/results2csv.py')
-rw-r--r-- | exam/management/commands/results2csv.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/exam/management/commands/results2csv.py b/exam/management/commands/results2csv.py index 1adf442..f1da1a8 100644 --- a/exam/management/commands/results2csv.py +++ b/exam/management/commands/results2csv.py @@ -11,11 +11,12 @@ from exam.views import get_quiz_data from exam.models import Quiz result_template = Template('''\ -"name","username","rollno","email","answered","total","attempts" +"name","username","rollno","email","answered","total","attempts","position","department","institute" {% for paper in paper_list %}\ "{{ paper.name }}","{{ paper.username }}","{{ paper.rollno }}",\ "{{ paper.email }}","{{ paper.answered }}",{{ paper.total }},\ -{{ paper.attempts }} +{{ paper.attempts }},"{{ paper.position }}",\ +"{{ paper.department }}","{{ paper.institute }}" {% endfor %}\ ''') |