From 18f1f16c28054de68b61bb50796d5f046d9272d2 Mon Sep 17 00:00:00 2001 From: Jan <26145882+imverum@users.noreply.github.com> Date: Fri, 4 Dec 2020 19:34:33 +0100 Subject: [PATCH] maybe it works properly now, idfk --- src/modules/scanForTimetableChanges.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/scanForTimetableChanges.ts b/src/modules/scanForTimetableChanges.ts index 0536e77..ef2792e 100644 --- a/src/modules/scanForTimetableChanges.ts +++ b/src/modules/scanForTimetableChanges.ts @@ -41,7 +41,7 @@ export async function run() { ro: 'Room' } for (const prop of ['kl', 'te', 'su', 'ro']) { - if (lesson[prop]?.[0] != kLesson[prop]?.[0]) + if (lesson[prop]?.[0] == kLesson[prop]?.[0]) desc += `**${propFullName[prop]}:** ${kLesson[prop]?.[0]?.longname} ${kLesson[prop]?.[0]?.longname != kLesson[prop]?.[0]?.name ? `(${(kLesson[prop]?.[0]?.name)})` : ''} \u200b **=>** \u200b ${lesson[prop]?.[0]?.longname} ${lesson[prop]?.[0]?.longname != lesson[prop]?.[0]?.name ? `(${lesson[prop]?.[0]?.name})` : ''} \n`; } if (lesson.activityType != kLesson.activityType)