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