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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user