From 2e0d5feb1e8df2f36ebb0d044d8c7044434dd892 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Fri, 24 Jan 2025 16:03:25 +0100 Subject: [PATCH] reintroduce racetime start time filter --- app/Console/Commands/SyncRacetime.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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']; -- 2.39.5