|
|
|
@ -1931,7 +1931,7 @@ defer { |
|
|
|
|
|
|
|
|
|
|
|
var _groupStages = [GroupStage]() |
|
|
|
var _groupStages = [GroupStage]() |
|
|
|
for index in 0..<groupStageCount { |
|
|
|
for index in 0..<groupStageCount { |
|
|
|
let groupStage = GroupStage(tournament: id, index: index, size: teamsPerGroupStage, matchFormat: groupStageSmartMatchFormat()) |
|
|
|
let groupStage = GroupStage(tournament: id, index: index, size: teamsPerGroupStage, matchFormat: groupStageFormat) |
|
|
|
_groupStages.append(groupStage) |
|
|
|
_groupStages.append(groupStage) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -1956,7 +1956,7 @@ defer { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let rounds = (0..<roundCount).map { //index 0 is the final |
|
|
|
let rounds = (0..<roundCount).map { //index 0 is the final |
|
|
|
return Round(tournament: id, index: $0, matchFormat: roundSmartMatchFormat($0), loserBracketMode: loserBracketMode) |
|
|
|
return Round(tournament: id, index: $0, matchFormat: matchFormat, loserBracketMode: loserBracketMode) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if rounds.isEmpty { |
|
|
|
if rounds.isEmpty { |
|
|
|
|