Removed duplicate, fixed crash
This commit is contained in:
@@ -71,6 +71,8 @@ async function getUntisServer(school) {
|
||||
],
|
||||
"jsonrpc": "2.0"
|
||||
})
|
||||
}).catch(error => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
const searchSchoolJson = await searchSchool.json();
|
||||
@@ -151,11 +153,6 @@ async function getUntis(weekDate) {
|
||||
subjectsWithoutTeachingContent.splice(subjectsWithoutTeachingContent.indexOf(entry.subject.displayName), 1);
|
||||
}
|
||||
}
|
||||
|
||||
if (!teachingContent.includes(entry.teachingContent) && entry.teachingContent != null) {
|
||||
if (teachingContent != "") teachingContent += '\n';
|
||||
teachingContent += "- " + entry.teachingContent;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user