From f18454c49a8ff8d6c0712d0619a8d69f6e0711c1 Mon Sep 17 00:00:00 2001 From: minie4 Date: Fri, 25 Aug 2023 01:18:07 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Fix=20crash=20while=20extracting?= =?UTF-8?q?=20untis=20timestamp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/parser/untis.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/parser/untis.js b/server/parser/untis.js index 7c5f1a3..a779254 100644 --- a/server/parser/untis.js +++ b/server/parser/untis.js @@ -36,10 +36,8 @@ export function parseSubstitutionPlan(html) { infos.week = title[3]; // Get the export timestamp - const rawTimestamp = $(tableElement) - .parent() - .parent() - .siblings(".mon_head") + const rawTimestamp = $(".mon_head") + .first() .find("td") .text() .split("Stand: ")[1]