Fix schedule, even uglier code

This commit is contained in:
octycs 2020-12-22 21:08:50 +01:00
parent a6d0ea52f4
commit 0684fea1ee
1 changed files with 4 additions and 1 deletions

View File

@ -58,7 +58,10 @@ function parse_schedule() {
title: fahrplan[i].title,
sub: fahrplan[i].start + " D" + fahrplan[i].day + " @ " + fahrplan[i].room + ", " + fahrplan[i].personnames,
});
} else if (fahrplan_parsed.other.length < n_other) {
} else if (fahrplan_parsed.other.length < n_other
&& fahrplan[i].roomguid != channel_here && fahrplan[i].room != channel_here
&& fahrplan[i].roomguid != channel_main_1 && fahrplan[i].room != channel_main_1
&& fahrplan[i].roomguid != channel_main_2 && fahrplan[i].room != channel_main_2) {
fahrplan_parsed.other.push({
title: fahrplan[i].title,
sub: fahrplan[i].start + " D" + fahrplan[i].day + " @ " + fahrplan[i].room,