Store subjects without grades for KKI

This commit is contained in:
Norbi Peti 2021-01-25 21:18:42 +01:00
parent 2538d7cf16
commit 2fc95dc8c7
No known key found for this signature in database
GPG key ID: DBA4C4549A927E56

View file

@ -37,8 +37,9 @@ parseExcel = async function (file) {
if (grade == null) {
const sign = row["Aláírás"];
if (!sign)
continue;
grade = [, sign.startsWith("Aláírva") ? 5 : 1];
grade = [, 0];
else
grade = [, sign.startsWith("Aláírva") ? 5 : 1];
}
let semester = Semester.parse(row["Félév"]);
subject.grade = +grade[1];