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

Commit f8e6ba3

Browse files
committed
Add: support for microparsons answer table
1 parent 7a1b1fc commit f8e6ba3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

runestone/hparsons/js/BlockFeedback.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,11 @@ export default class BlockFeedback extends HParsonsFeedback {
4343
}
4444
let logData = {
4545
event: "hparsonsAnswer",
46-
div_id: this.hparsons.divid,
47-
act: act
46+
div_id: this.hparsons.divid,
47+
act: JSON.stringify(act),
48+
answer: JSON.stringify({"blocks": act.answer}),
49+
percent: this.grader.percent,
50+
correct: act.correct,
4851
}
4952
await this.hparsons.logBookEvent(logData);
5053
}
@@ -141,4 +144,4 @@ export default class BlockFeedback extends HParsonsFeedback {
141144
this.clearFeedback();
142145
}
143146

144-
}
147+
}

0 commit comments

Comments
 (0)