Added holiday detection resolves #2
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user