Added holiday detection resolves #2

This commit is contained in:
2025-05-31 17:15:53 +02:00
parent 26a05a8d8c
commit 2f7c089c0b
2 changed files with 52 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ class VirtuellerStundenplan {
this.#password = config.password;
if(config.key) this.key = config.key;
//this.teacherList = config.teachers;
this.holidays = config.holidays;
}
async fetchKey(returnKey=false) {
@@ -189,7 +189,7 @@ class VirtuellerStundenplan {
const hasContent = /[\da-zA-Z]/.test(JSON.stringify(day));
res.content[i] = hasContent ? new TimetableDay(day) : null;
res.content[i] = hasContent ? new TimetableDay(day, this.holidays) : null;
}
return res;