[O] Use percentage as weight

This commit is contained in:
Hykilpikonna
2019-11-09 22:45:40 -05:00
parent 472d83e9fb
commit 62373485f5
+1 -1
View File
@@ -256,7 +256,7 @@ export default class Course
? this.grading.weightingMap[type] : scoreMax / totalScoreMax;
// Return
return {name: type, id: typeAssignments[0].typeId, weight: +weight.toFixed(2),
return {name: type, id: typeAssignments[0].typeId, weight: +(weight * 100).toFixed(2),
scoreMax: scoreMax, score: score, percent: +(score / scoreMax * 100).toFixed(2)}
})
}