X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FModels%2FTournament.php;h=96e89b8939358aea1b88acfdfa8f1c89270e86aa;hb=e1ecc76c1c6d527502d6576ee19be06df2a15bb7;hp=eea88096bdfc71da9a39115c2ed997a98a0afdb2;hpb=3a774bb649734fc3a2135ec1b52cef9a049880ee;p=alttp.git diff --git a/app/Models/Tournament.php b/app/Models/Tournament.php index eea8809..96e89b8 100644 --- a/app/Models/Tournament.php +++ b/app/Models/Tournament.php @@ -21,6 +21,10 @@ class Tournament extends Model return $runners; } + public function hasScoreboard() { + return $this->type == 'signup-async'; + } + public function updatePlacement() { $runners = []; foreach ($this->participants as $p) { @@ -82,6 +86,7 @@ class Tournament extends Model 'accept_applications' => 'boolean', 'locked' => 'boolean', 'no_record' => 'boolean', + 'show_numbers' => 'boolean', ]; }