schedule: fix for transposition to work
This commit is contained in:
parent
5821861655
commit
cfe9b21b82
|
@ -82,7 +82,6 @@ function parseData($config, $data) {
|
||||||
$microslots[] = [$lastTs, $ts];
|
$microslots[] = [$lastTs, $ts];
|
||||||
$lastTs = $ts;
|
$lastTs = $ts;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fill in the event ID for each time slot in each hall
|
// Fill in the event ID for each time slot in each hall
|
||||||
$events = [];
|
$events = [];
|
||||||
|
|
||||||
|
@ -120,9 +119,8 @@ function parseData($config, $data) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$events[] = $hall_data;
|
$events[$hall_id] = $hall_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove halls with no events after filtering
|
// Remove halls with no events after filtering
|
||||||
$count = count($events);
|
$count = count($events);
|
||||||
for ($i = 0; $i < $count; ++$i) {
|
for ($i = 0; $i < $count; ++$i) {
|
||||||
|
|
Loading…
Reference in New Issue