update to 1.0.1, fix verbal grades (non-number grades)
This commit is contained in:
@@ -133,6 +133,10 @@ class Util {
|
||||
|
||||
for (mark in marks) {
|
||||
len += 1
|
||||
if (mark.grade !in "0123456789") {
|
||||
marks.remove(mark)
|
||||
continue
|
||||
}
|
||||
sum += (mark.grade.toFloat() * mark.weight.toFloat())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user