From a46b8e5f013b80968bd460139940effe0c08ffd4 Mon Sep 17 00:00:00 2001 From: Arjun Singh Date: Thu, 13 Sep 2012 23:16:47 -0700 Subject: [PATCH] fix old-style customresponses --- common/lib/capa/capa/responsetypes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/lib/capa/capa/responsetypes.py b/common/lib/capa/capa/responsetypes.py index 7f1ff32f67..5b89b78867 100644 --- a/common/lib/capa/capa/responsetypes.py +++ b/common/lib/capa/capa/responsetypes.py @@ -971,8 +971,9 @@ def sympy_check2(): # build map giving "correct"ness of the answer(s) correct_map = CorrectMap() for k in range(len(idset)): + npoints = self.maxpoints[idset[k]] if correct[k] == 'correct' else 0 correct_map.set(idset[k], correct[k], msg=messages[k], - npoints=self.maxpoints[idset[k]]) + npoints=npoints) return correct_map def get_answers(self):