🐛 Fix substitutions spanning over lessons
This commit is contained in:
@ -62,7 +62,7 @@ export function parseSubstitutionPlan(html) {
|
|||||||
const lessons = rawLesson.match(/\d+/g).map(Number);
|
const lessons = rawLesson.match(/\d+/g).map(Number);
|
||||||
for (const lesson of lessons) {
|
for (const lesson of lessons) {
|
||||||
rowData.lesson = lesson;
|
rowData.lesson = lesson;
|
||||||
data.push(rowData);
|
data.push({ ...rowData });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user