group teacher results by contact *email*
[edumed.git] / wtem / models.py
index 361bff3..3947632 100644 (file)
@@ -16,7 +16,7 @@ f = file(os.path.dirname(__file__) + '/fixtures/exercises.json')
 exercises = json.loads(f.read())
 f.close()
 
-DEBUG_KEY = '12345'
+DEBUG_KEY = 'smerfetka159'
 
 
 class Submission(models.Model):
@@ -127,6 +127,8 @@ class Submission(models.Model):
             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':