From 2fc95dc8c7f5c85203651a295eba00794ddb642d Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Mon, 25 Jan 2021 21:18:42 +0100 Subject: [PATCH] Store subjects without grades for KKI --- spec.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spec.js b/spec.js index 5bdc4d4..b8aab08 100644 --- a/spec.js +++ b/spec.js @@ -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];