Don't consider missing submissions in min grade
Some checks are pending
continuous-integration/drone/push Build is running
Some checks are pending
continuous-integration/drone/push Build is running
This commit is contained in:
parent
5599a94f18
commit
1f7896ff26
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@
|
||||||
let sum = 0;
|
let sum = 0;
|
||||||
for (const grade of grades) {
|
for (const grade of grades) {
|
||||||
sum += grade.score;
|
sum += grade.score;
|
||||||
if (stats.min > grade.score) stats.min = grade.score;
|
if (stats.min > grade.score && grade.comment != "- Non rendu -") stats.min = grade.score;
|
||||||
if (stats.max < grade.score) stats.max = grade.score;
|
if (stats.max < grade.score) stats.max = grade.score;
|
||||||
}
|
}
|
||||||
stats.mean = sum / grades.length;
|
stats.mean = sum / grades.length;
|
||||||
|
|
Reference in a new issue