From 628ca00252cc09bc79e3d52fa2bee78467993a3b Mon Sep 17 00:00:00 2001 From: ichuang Date: Sun, 10 Jun 2012 22:56:16 -0400 Subject: [PATCH] fix dogfood -> use CorrectMap --- lms/lib/dogfood/check.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/lib/dogfood/check.py b/lms/lib/dogfood/check.py index 1a3979c238..7ec49848eb 100644 --- a/lms/lib/dogfood/check.py +++ b/lms/lib/dogfood/check.py @@ -44,9 +44,9 @@ def check_problem_code(ans,the_lcp,correct_answers,false_answers): fp = the_lcp.system.filestore.open('problems/%s.xml' % pfn) test_lcp = lcp.LoncapaProblem(fp, '1', system=the_lcp.system) - if not (test_lcp.grade_answers(correct_answers)['1_2_1']=='correct'): + if not (test_lcp.grade_answers(correct_answers).get_correctness('1_2_1')=='correct'): is_ok = False - if (test_lcp.grade_answers(false_answers)['1_2_1']=='correct'): + if (test_lcp.grade_answers(false_answers).get_correctness('1_2_1')=='correct'): is_ok = False except Exception,err: is_ok = False