From: Daniel Karbach Date: Fri, 24 Jan 2025 15:03:25 +0000 (+0100) Subject: reintroduce racetime start time filter X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=2e0d5feb1e8df2f36ebb0d044d8c7044434dd892;p=alttp.git reintroduce racetime start time filter --- diff --git a/app/Console/Commands/SyncRacetime.php b/app/Console/Commands/SyncRacetime.php index 03337df..854897e 100644 --- a/app/Console/Commands/SyncRacetime.php +++ b/app/Console/Commands/SyncRacetime.php @@ -56,12 +56,12 @@ class SyncRacetime extends Command { $racerooms = $this->getRacetime($event->racetime_category); foreach ($episodes as $episode) { $rooms = $this->filterID($episode, $racerooms); - //if (count($rooms) > 1) { - // $rooms = $this->filterStartTime($episode, $rooms); - //} if (count($rooms) > 1) { $rooms = $this->filterPlayerNames($episode, $rooms); } + if (count($rooms) > 1) { + $rooms = $this->filterStartTime($episode, $rooms); + } if (count($rooms) == 1) { $this->line(' - linking episode '.$episode->id.' with room '.$rooms[0]['name']); $episode->raceroom = 'https://racetime.gg'.$rooms[0]['url'];