From 5a4e84f3c73a95ab4d114977660ca41877142051 Mon Sep 17 00:00:00 2001 From: minie4 Date: Fri, 30 Jun 2023 17:32:55 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Set=20lesson=20of=20substitution?= =?UTF-8?q?=20to=200=20if=20column=20empty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/parser/untis.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/parser/untis.js b/server/parser/untis.js index dbba821..7c5f1a3 100644 --- a/server/parser/untis.js +++ b/server/parser/untis.js @@ -89,7 +89,7 @@ export function parseSubstitutionPlan(html) { }); // Split change if it spans over multiple lessons - const rawLesson = rowData.lesson; + const rawLesson = rowData.lesson || "0"; const fromToLessons = rawLesson.match(/\d+/g).map(Number); const from = fromToLessons[0]; const to = fromToLessons[1] || fromToLessons[0];