mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-30 19:19:40 +00:00
Poolbracket does not keep a matches collection
This commit is contained in:
@@ -30,8 +30,10 @@ class Tournamentmatchgen
|
||||
matches = Pool.new(weight).generatePools()
|
||||
last_match = matches.sort_by{|m| m.round}.last
|
||||
highest_round = last_match.round
|
||||
@matches += Poolbracket.new.generateBracketMatches(matches, weight, highest_round)
|
||||
Poolbracket.new(weight, highest_round).generateBracketMatches()
|
||||
end
|
||||
@tournament.save!
|
||||
@matches = @tournament.matches
|
||||
end
|
||||
|
||||
def generateMatches
|
||||
|
||||
Reference in New Issue
Block a user