From b6da441d545b03e4fd61428e81a113e6a285af0e Mon Sep 17 00:00:00 2001 From: "R.J. Osborne" Date: Mon, 18 May 2015 18:59:43 -0400 Subject: [PATCH] Take a lot of weight arguments in generatePools --- app/models/tournamentmatchgen.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/tournamentmatchgen.rb b/app/models/tournamentmatchgen.rb index 2a9f8c3..aaeb954 100644 --- a/app/models/tournamentmatchgen.rb +++ b/app/models/tournamentmatchgen.rb @@ -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