|
|
|
|
@ -120,7 +120,11 @@ final class Tournament : ModelObject, Storable { |
|
|
|
|
self.startDate = startDate |
|
|
|
|
self.endDate = endDate |
|
|
|
|
self.creationDate = creationDate |
|
|
|
|
#if DEBUG |
|
|
|
|
self.isPrivate = false |
|
|
|
|
#else |
|
|
|
|
self.isPrivate = Guard.main.purchasedTransactions.isEmpty |
|
|
|
|
#endif |
|
|
|
|
self.groupStageFormat = groupStageFormat |
|
|
|
|
self.roundFormat = roundFormat |
|
|
|
|
self.loserRoundFormat = loserRoundFormat |
|
|
|
|
@ -142,16 +146,24 @@ final class Tournament : ModelObject, Storable { |
|
|
|
|
self.entryFee = entryFee |
|
|
|
|
self.additionalEstimationDuration = additionalEstimationDuration |
|
|
|
|
self.isDeleted = isDeleted |
|
|
|
|
#if DEBUG |
|
|
|
|
self.publishTeams = true |
|
|
|
|
self.publishSummons = true |
|
|
|
|
self.publishBrackets = true |
|
|
|
|
self.publishGroupStages = true |
|
|
|
|
self.publishRankings = true |
|
|
|
|
#else |
|
|
|
|
self.publishTeams = publishTeams |
|
|
|
|
self.publishSummons = publishSummons |
|
|
|
|
self.publishBrackets = publishBrackets |
|
|
|
|
self.publishGroupStages = publishGroupStages |
|
|
|
|
self.publishRankings = publishRankings |
|
|
|
|
#endif |
|
|
|
|
self.shouldVerifyBracket = shouldVerifyBracket |
|
|
|
|
self.shouldVerifyGroupStage = shouldVerifyGroupStage |
|
|
|
|
self.hideTeamsWeight = hideTeamsWeight |
|
|
|
|
self.publishTournament = publishTournament |
|
|
|
|
self.hidePointsEarned = hidePointsEarned |
|
|
|
|
self.publishRankings = publishRankings |
|
|
|
|
self.loserBracketMode = loserBracketMode |
|
|
|
|
self.initialSeedRound = initialSeedRound |
|
|
|
|
self.initialSeedCount = initialSeedCount |
|
|
|
|
|