Skip to content

Commit

Permalink
Part.submit saves best_alternative and script_result on the part.
Browse files Browse the repository at this point in the history
  • Loading branch information
christianp committed Mar 21, 2024
1 parent 8da71e4 commit 149eff3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runtime/scripts/part.js
Original file line number Diff line number Diff line change
Expand Up @@ -1255,6 +1255,8 @@ if(res) { \
this.markingFeedback = result.markingFeedback.slice();
this.finalised_result = result.finalised_result;
this.adaptiveMarkingUsed = result.adaptiveMarkingUsed;
this.best_alternative = result.best_alternative;
this.script_result = result.script_result;
this.marking_values = result.values;
this.credit = result.credit;
this.answered = result.answered;
Expand Down Expand Up @@ -1547,6 +1549,8 @@ if(res) { \
return {
warnings: this.warnings.slice(),
markingFeedback: this.markingFeedback.slice(),
best_alternative: altres.best_alternative,
script_result: res.script_result,
finalised_result: res.finalised_result,
values: res.values,
credit: this.credit,
Expand Down

0 comments on commit 149eff3

Please sign in to comment.