]> git.localhorst.tv Git - alttp.git/commitdiff
move static pilot spoiler values to init
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 19 Jan 2026 07:56:51 +0000 (08:56 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 19 Jan 2026 07:56:51 +0000 (08:56 +0100)
app/Console/Commands/SyncPilotSpoiler.php

index f2a9a0b540bfefa1b3e0281c9df6c40038c1d84a..d3f8cc4170f2f24012194652b5df56239a382e25 100644 (file)
@@ -90,6 +90,8 @@ class SyncPilotSpoiler extends Command {
                if (!$episode) {
                        $episode = new Episode();
                        $episode->ext_id = $ext_id;
+                       $episode->estimate = 60 * 60;
+                       $episode->confirmed = true;
                }
                $episode->event()->associate($event);
                $episode->title = $row[1].' vs. '.$row[2];
@@ -97,8 +99,6 @@ class SyncPilotSpoiler extends Command {
                if (!$episode->start || $start->ne($episode->start)) {
                        $episode->start = $start;
                }
-               $episode->estimate = 60 * 60;
-               $episode->confirmed = true;
                $episode->save();
 
                $players_a = $this->getTeam($row[1]);