We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5b1c26 commit baac29aCopy full SHA for baac29a
1 file changed
src/untis_utils/data.ts
@@ -26,14 +26,18 @@ function parseTimetable(data: Lesson[]): ILesson[] {
26
start = parseDate(lesson.date, lesson.startTime);
27
end = parseDate(lesson.date, lesson.endTime);
28
}
29
- lessons.push({
30
- name: subject,
31
- teacher: teacher,
32
- room: room,
33
- startTime: start,
34
- endTime: end,
35
- description: "",
36
- });
+ if (lesson.code === "cancelled") {
+ return;
+ } else {
+ lessons.push({
+ name: subject,
+ teacher: teacher,
+ room: room,
+ startTime: start,
37
+ endTime: end,
38
+ description: "",
39
+ });
40
+ }
41
});
42
43
return lessons;
0 commit comments