diff --git a/src/main/resources/couchdb/lerning_progress.design.js b/src/main/resources/couchdb/lerning_progress.design.js index 45c27e113fcb2581141d2bcbaf405b926f9eecd1..5ae5ba8449748e938a7646a1863eb6314acf512f 100644 --- a/src/main/resources/couchdb/lerning_progress.design.js +++ b/src/main/resources/couchdb/lerning_progress.design.js @@ -9,7 +9,7 @@ var designDoc = { /* The 'questionValue' contains the points scored with this answer, * and this could be negative if a wrong answer was given. * However, we do not want negative values, so we set the lower bound to 0.*/ - score = Math.max(doc.questionValue || 0, 0); + var score = Math.max(doc.questionValue || 0, 0); emit([doc.sessionId, doc.user], { questionId: doc.questionId, score: score, piRound: doc.piRound