most of stage 2
[edumed.git] / wtem / models.py
index d355506..3947632 100644 (file)
@@ -127,6 +127,8 @@ class Submission(models.Model):
             if t == 'edumed_prawdafalsz':
                 toret = 0
                 for idx, statement in enumerate(exercise['statements']):
             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':
                     if answer[idx] == 'true':
                         given = True
                     elif answer[idx] == 'false':