mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-17 05:15:36 +00:00
Filter wrestlers per pool for matchups.
This commit is contained in:
@@ -59,7 +59,7 @@ class Pool
|
|||||||
end
|
end
|
||||||
|
|
||||||
def roundRobin(pool,tournament_id,weight,matches,wrestlers)
|
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 = RoundRobinTournament.schedule(@wrestlers).reverse
|
||||||
@poolMatches.each_with_index do |b,index|
|
@poolMatches.each_with_index do |b,index|
|
||||||
@bout = b.map
|
@bout = b.map
|
||||||
|
|||||||
Reference in New Issue
Block a user