From: Daniel Karbach Date: Tue, 22 Aug 2023 14:46:12 +0000 (+0200) Subject: disable racetime filter by time, require 2 players by name X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=19bdadf13c1632fc312f5539a2b2cee8282b5dcb;p=alttp.git disable racetime filter by time, require 2 players by name --- diff --git a/app/Console/Commands/SyncRacetime.php b/app/Console/Commands/SyncRacetime.php index 34e41c4..03337df 100644 --- a/app/Console/Commands/SyncRacetime.php +++ b/app/Console/Commands/SyncRacetime.php @@ -56,9 +56,9 @@ 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->filterStartTime($episode, $rooms); + //} if (count($rooms) > 1) { $rooms = $this->filterPlayerNames($episode, $rooms); } @@ -118,7 +118,7 @@ class SyncRacetime extends Command { $pnames[] = $pname; } } - if (empty($pnames)) { + if (count($pnames) < 2) { return $racerooms; } $rooms = [];