schedule: fix for transposition to work

This commit is contained in:
Vasil Kolev 2021-07-27 22:12:26 +03:00 committed by Ivaylo Markov
parent 5821861655
commit cfe9b21b82
1 changed files with 1 additions and 3 deletions

View File

@ -82,7 +82,6 @@ function parseData($config, $data) {
$microslots[] = [$lastTs, $ts];
$lastTs = $ts;
}
// Fill in the event ID for each time slot in each hall
$events = [];
@ -120,9 +119,8 @@ function parseData($config, $data) {
}
}
$events[] = $hall_data;
$events[$hall_id] = $hall_data;
}
// Remove halls with no events after filtering
$count = count($events);
for ($i = 0; $i < $count; ++$i) {