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

Commit b9075ff

Browse files
committed
Fix: missing data in group submit
1 parent 13c2b4c commit b9075ff

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

runestone/activecode/js/activecode.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,8 +1200,8 @@ Yet another is that there is an internal error. The internal error message is:
12001200
div_id: this.divid,
12011201
code: this.editor.getValue(),
12021202
language: this.language,
1203-
errinfo: this.errinfo,
1204-
to_save: this.saveCode,
1203+
errinfo: this.errinfo || "",
1204+
to_save: this.saveCode || "F",
12051205
prefix: this.pretext,
12061206
suffix: this.suffix,
12071207
partner: this.partner,

runestone/fitb/js/fitb.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ export default class FITB extends RunestoneBase {
215215
});
216216
let data = {
217217
event: "fillb",
218-
act: answer,
219-
answer: answer,
218+
act: answer || "",
219+
answer: answer || "",
220220
correct: this.correct ? "T" : "F",
221221
div_id: this.divid,
222222
};

runestone/groupsub/js/groupsub.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,12 @@ class GroupSub extends RunestoneBase {
108108
});
109109
for (let student of group) {
110110
for (let question of window.allComponents) {
111-
console.log(`${student} ${question}`)
112-
await question.logCurrentAnswer(student)
111+
try{
112+
console.log(`${student} ${question}`)
113+
await question.logCurrentAnswer(student)
114+
} catch(e) {
115+
console.log(`failed to submit ${question} : ${e}`)
116+
}
113117
}
114118
}
115119

0 commit comments

Comments
 (0)