1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-30 19:22:21 +00:00

removed wrestlers array convert on pool generation

This commit is contained in:
2015-02-06 22:52:58 +00:00
parent 8c7c1abc99
commit cba5d0a96d

View File

@@ -10,7 +10,7 @@ class Pool
def twoPools(wrestlers,weight_id,tournament)
#wrestlers.sort_by{|x|[x.original_seed]}
wrestlers.to_a
pool = 1
wrestlers.each do |w|
w.poolNumber = pool
@@ -28,7 +28,7 @@ class Pool
def fourPools(wrestlers,weight_id,tournament)
#wrestlers.sort_by{|x|[x.original_seed]}
wrestlers.to_a
pool = 1
wrestlers.each do |w|
w.poolNumber = pool