From d76c8a5fed18d7234df26bb9de5403cd435a52e0 Mon Sep 17 00:00:00 2001 From: viveksantayana Date: Tue, 7 Dec 2021 15:03:21 +0000 Subject: [PATCH] Bug fix: evaluating question 97 --- ref-test/common/data_tools.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ref-test/common/data_tools.py b/ref-test/common/data_tools.py index 0dfadf1..d406e7b 100644 --- a/ref-test/common/data_tools.py +++ b/ref-test/common/data_tools.py @@ -128,7 +128,9 @@ def evaluate_answers(dataset: dict, answers: dict): if str(q_no) in answers: correct = block['correct'] correct_answer = block['options'][correct] - if answers[str(q_no)] == correct_answer: + submitted_answer = answers[str(q_no)] + submitted_answer = submitted_answer.replace('‘', '‘').replace('’', '’').replace('—', '—') + if submitted_answer == correct_answer: score += 1 for tag in block['tags']: if tag not in tags: