1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-14 17:06:46 +00:00

Added persistence to pool placement and pool order

This commit is contained in:
2019-04-19 10:33:06 -04:00
parent 31fbe5baff
commit a76f4036b3
15 changed files with 766 additions and 585 deletions

View File

@@ -67,14 +67,13 @@ class PoolBracketPlacementPoints
end
def onePool
pool_placement_order = @wrestler.weight.pool_placement_order(1)
if @wrestler == pool_placement_order.first
if @wrestler.pool_placement == 1
return firstPlace
elsif @wrestler == pool_placement_order.second
elsif @wrestler.pool_placement == 2
return secondPlace
elsif @wrestler == pool_placement_order.third
elsif @wrestler.pool_placement == 3
return thirdPlace
elsif @wrestler == pool_placement_order.fourth
elsif @wrestler.pool_placement == 4
return fourthPlace
end
return 0