Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit a3e9915

Browse files
committed
Bring webwork up to 2.17
1 parent a0c6059 commit a3e9915

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

runestone/webwork/js/webwork.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function logWebWork(e, data) {
1818
if (data.rh_result.answers[k].score == 1) {
1919
correctCount += 1;
2020
}
21-
actString += `actual:${data.rh_result.answers[k].student_ans}:expected:${data.rh_result.answers[k].correct_value}:`;
21+
actString += `actual:${data.rh_result.answers[k].original_student_ans}:expected:${data.rh_result.answers[k].correct_value}:`;
2222
}
2323
let pct = correctCount / qCount;
2424
actString += `correct:${correctCount}:count:${qCount}:pct:${pct}`;
@@ -27,7 +27,7 @@ function logWebWork(e, data) {
2727
}
2828
rb.logBookEvent({
2929
event: "webwork",
30-
div_id: data.ww_id,
30+
div_id: data.inputs_ref.problemUUID,
3131
act: actString,
3232
correct: correct,
3333
});
@@ -36,7 +36,7 @@ function logWebWork(e, data) {
3636
function logShowCorrect(e, data) {
3737
rb.logBookEvent({
3838
event: "webwork",
39-
div_id: data.ww_id,
39+
div_id: data.inputs_ref.problemUUID,
4040
act: "show",
4141
});
4242
}

0 commit comments

Comments
 (0)