mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Take a lot of weight arguments in generatePools
This commit is contained in:
@@ -20,7 +20,7 @@ class Tournamentmatchgen
|
||||
|
||||
def buildTournamentWeights(tournament_id, weight)
|
||||
@wrestlers = weight.wrestlers
|
||||
@matches = Pool.new.generatePools(weight.pools,@wrestlers, weight, tournament_id, @matches)
|
||||
@matches = Pool.new.generatePools(weight.pools, weight.wrestlers, weight, tournament_id, @matches)
|
||||
@weight_matches = @matches.select{|m| m.weight_id == weight.id }
|
||||
@last_match = @weight_matches.sort_by{|m| m.round}.last
|
||||
@highest_round = @last_match.round
|
||||
|
||||
Reference in New Issue
Block a user