|
|
|
|
@ -692,7 +692,7 @@ extension Tournament { |
|
|
|
|
let matchCount = RoundRule.numberOfMatches(forTeams: minimalBracketTeamCount ?? bracketTeamCount()) |
|
|
|
|
|
|
|
|
|
let rounds = (0..<roundCount).map { //index 0 is the final |
|
|
|
|
return Round(tournament: id, index: $0, matchFormat: matchFormat, loserBracketMode: loserBracketMode) |
|
|
|
|
return Round(tournament: id, index: $0, format: matchFormat, loserBracketMode: loserBracketMode) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if rounds.isEmpty { |
|
|
|
|
@ -756,7 +756,7 @@ extension Round { |
|
|
|
|
let loserBracketMatchFormat = tournamentObject()?.loserBracketMatchFormat |
|
|
|
|
|
|
|
|
|
let rounds = (0..<roundCount).map { //index 0 is the final |
|
|
|
|
let round = Round(tournament: tournament, index: $0, matchFormat: loserBracketMatchFormat) |
|
|
|
|
let round = Round(tournament: tournament, index: $0, format: loserBracketMatchFormat) |
|
|
|
|
round.parent = id //parent |
|
|
|
|
//titles[round.id] = round.roundTitle(initialMode: true) |
|
|
|
|
return round |
|
|
|
|
|