From af312b760b1e5319a53ef9543c47e5ec67769a3a Mon Sep 17 00:00:00 2001 From: Razmig Sarkissian Date: Fri, 21 Jun 2024 17:11:26 +0200 Subject: [PATCH] fix groupStageChunkCount --- PadelClub/Data/MatchScheduler.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PadelClub/Data/MatchScheduler.swift b/PadelClub/Data/MatchScheduler.swift index 9fb3349..4ea4dfd 100644 --- a/PadelClub/Data/MatchScheduler.swift +++ b/PadelClub/Data/MatchScheduler.swift @@ -85,7 +85,7 @@ class MatchScheduler : ModelObject, Storable { @discardableResult func updateGroupStageSchedule(tournament: Tournament) -> Date { - let computedGroupStageChunkCount = groupStageChunkCount ?? 1 + let computedGroupStageChunkCount = groupStageChunkCount ?? tournament.getGroupStageChunkValue() let groupStages: [GroupStage] = tournament.groupStages() let numberOfCourtsAvailablePerRotation: Int = tournament.courtCount