From 4d6ed2e5ea7e692da66d6961472f5b6b4dbc39b0 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Mon, 2 Feb 2026 17:22:22 +0100 Subject: [PATCH] allow unlimited tournament scoring --- app/Models/Tournament.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 { -- 2.47.3