mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-06 22:44:14 +00:00
removed wrestlers array convert on pool generation
This commit is contained in:
@@ -10,7 +10,7 @@ class Pool
|
|||||||
|
|
||||||
def twoPools(wrestlers,weight_id,tournament)
|
def twoPools(wrestlers,weight_id,tournament)
|
||||||
#wrestlers.sort_by{|x|[x.original_seed]}
|
#wrestlers.sort_by{|x|[x.original_seed]}
|
||||||
wrestlers.to_a
|
|
||||||
pool = 1
|
pool = 1
|
||||||
wrestlers.each do |w|
|
wrestlers.each do |w|
|
||||||
w.poolNumber = pool
|
w.poolNumber = pool
|
||||||
@@ -28,7 +28,7 @@ class Pool
|
|||||||
|
|
||||||
def fourPools(wrestlers,weight_id,tournament)
|
def fourPools(wrestlers,weight_id,tournament)
|
||||||
#wrestlers.sort_by{|x|[x.original_seed]}
|
#wrestlers.sort_by{|x|[x.original_seed]}
|
||||||
wrestlers.to_a
|
|
||||||
pool = 1
|
pool = 1
|
||||||
wrestlers.each do |w|
|
wrestlers.each do |w|
|
||||||
w.poolNumber = pool
|
w.poolNumber = pool
|
||||||
|
|||||||
Reference in New Issue
Block a user