From cfe9b21b824d726e2dd1743882b05dd956cac0ba Mon Sep 17 00:00:00 2001 From: Vasil Kolev Date: Tue, 27 Jul 2021 22:12:26 +0300 Subject: [PATCH] schedule: fix for transposition to work --- schedule/parse.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/schedule/parse.php b/schedule/parse.php index eabd025..fea0a01 100644 --- a/schedule/parse.php +++ b/schedule/parse.php @@ -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) {