Bug fix: evaluating question 97
This commit is contained in:
parent
5878001862
commit
37b8b3e0a1
@ -128,7 +128,9 @@ def evaluate_answers(dataset: dict, answers: dict):
|
|||||||
if str(q_no) in answers:
|
if str(q_no) in answers:
|
||||||
correct = block['correct']
|
correct = block['correct']
|
||||||
correct_answer = block['options'][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
|
score += 1
|
||||||
for tag in block['tags']:
|
for tag in block['tags']:
|
||||||
if tag not in tags:
|
if tag not in tags:
|
||||||
|
Loading…
Reference in New Issue
Block a user