Skip to content

Commit

Permalink
v2.10.1: fix error caused by missing flatScores
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienjoly committed May 25, 2018
1 parent e31c2eb commit da1292e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "js-test",
"version": "2.10.0",
"version": "2.10.1",
"description": "Exercise/exam software for evaluating JavaScript students' progress",
"repository": {
"type": "git",
Expand Down
1 change: 1 addition & 0 deletions src/evaluateGroupFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ var submissions = Object.keys(submissionSet).map(function(key){

async.mapSeries(submissions, evaluateStudent, function(err, res) {
if (err) throw err;
var flatScores = res.map(student => student.studentTotalScore);
// for each student, enumerate total score followed by number of points for each question
var studentScores = res.map(student => [ student.studentTotalScore ].concat(student.studentScoreArray));
// rotate this score matrix to get scores per student per question, cf https://stackoverflow.com/a/17428705/592254
Expand Down

0 comments on commit da1292e

Please sign in to comment.