From: Daniel Karbach Date: Mon, 2 Feb 2026 16:22:22 +0000 (+0100) Subject: allow unlimited tournament scoring X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=4d6ed2e5ea7e692da66d6961472f5b6b4dbc39b0;p=alttp.git allow unlimited tournament scoring --- diff --git a/app/Models/Tournament.php b/app/Models/Tournament.php index e0104cb..4860fb4 100644 --- a/app/Models/Tournament.php +++ b/app/Models/Tournament.php @@ -41,7 +41,11 @@ class Tournament extends Model { } public function getScorableRounds(): Collection { - return $this->rounds()->limit($this->total_scoring_limit)->get(); + $rounds = $this->rounds(); + if ($this->total_scoring_limit) { + $rounds->limit($this->total_scoring_limit); + } + return $rounds->get(); } public function hasScoreboard(): bool {