Skip to content

Commit

Permalink
minor changes necessary for grading the second test
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Nov 25, 2013
1 parent feb6904 commit 02d87e8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/org/rascalmpl/courses/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
// enableQuestions | true | true | false |


var enableEditing = false;
var enableEditing = true;
var enableQuestions = true;
8 changes: 6 additions & 2 deletions src/org/rascalmpl/tutor/ExamManager.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void createReview(){

public set[examResult] update(str cn){
scores = readSubmissionsAgain(cn);
reviews = readCSV(#set[reviewType], (resultsDir) + "Review.csv", ("separator" : ","));
reviews = readCSV(#set[reviewType], (resultsDir) + "Review.csv", ("separator" : ";"));
println("reviews = <typeOf(reviews)>: <reviews>");

rel[str Question, str Expected]good = readCSV(#rel[str Question, str Expected], (resultsDir) + "GoodAnswers.csv", ("separator" : ";"));
Expand All @@ -195,7 +195,11 @@ public set[examResult] update(str cn){
points[q] = review.Score;
comments[q] = review.Comment;
}
score = score + (points[q]?0.0);

if (q in points) {
score = score + points[q];
}

}
append examResult(sc.studentName, sc.studentMail, sc.StudentNumber, sc.timestamp,
sc.answers, sc.expectedAnswers, comments, points, 10.0 * score / nquestions);
Expand Down

0 comments on commit 02d87e8

Please sign in to comment.