Fix: missing csv field quote
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 16 Dec 2013 09:49:05 +0000 (10:49 +0100)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Wed, 15 Jan 2014 10:28:05 +0000 (11:28 +0100)
wtem/templatetags/wtem_csv.py

index 590767c..2c96704 100644 (file)
@@ -24,7 +24,7 @@ def csv_row_fragment(exercise_id, submission, submissionSet):
         mark = marks_by_examiner.get(str(examiner.id), None)
         toret += ','
         if mark is None:
         mark = marks_by_examiner.get(str(examiner.id), None)
         toret += ','
         if mark is None:
-            toret += '-'
+            toret += '"-"'
         else:
             toret += str(mark)
     return toret
         else:
             toret += str(mark)
     return toret