]> git.localhorst.tv Git - alttp.git/commitdiff
disable racetime filter by time, require 2 players by name
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 22 Aug 2023 14:46:12 +0000 (16:46 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 22 Aug 2023 14:46:12 +0000 (16:46 +0200)
app/Console/Commands/SyncRacetime.php

index 34e41c4ff8c5f85ddab1ea7a5491f256a812f6d6..03337df6769455e71fe651a1a0995b1f73d7426f 100644 (file)
@@ -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 = [];