1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Filter wrestlers per pool for matchups.

This commit is contained in:
2015-03-16 08:13:41 -04:00
parent 05c340eb94
commit 7b9422fd6c

View File

@@ -59,7 +59,7 @@ class Pool
end
def roundRobin(pool,tournament_id,weight,matches,wrestlers)
@wrestlers = wrestlers.to_a
@wrestlers = wrestlers.select{|w| w.poolNumber == pool}.to_a
@poolMatches = RoundRobinTournament.schedule(@wrestlers).reverse
@poolMatches.each_with_index do |b,index|
@bout = b.map