Skip to content

Commit 49f476a

Browse files
committed
Output scores for answers as 1 or 0
Fixes #6
1 parent 2b5d4fe commit 49f476a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/scoring.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def score_results(results: data_exporting.OutputSheet,
7575
scored_answers = []
7676
else:
7777
scored_answers = [
78-
actual == correct
78+
int(actual == correct)
7979
for actual, correct in zip(exam[answers_start_index:], key)
8080
]
8181
fields[grid_info.VirtualField.SCORE] = str(

0 commit comments

Comments
 (0)