1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-07 14:57:48 +00:00

Changed database column for wrestlers seed to bracket_line

This commit is contained in:
2018-09-17 14:29:00 +00:00
parent 1cfe818d14
commit 436e716cd4
11 changed files with 149 additions and 144 deletions

View File

@@ -10,18 +10,18 @@ class SwapWrestlers
w3 = Wrestler.new
w3.weight_id = w1.weight_id
w3.original_seed = w1.original_seed
w3.seed = w1.seed
w3.bracket_line = w1.bracket_line
w3.pool = w1.pool
swapWrestlerMatches(w1.allMatches,w1.id,w3.id)
#Swap wrestler 1 and wrestler 2
swapWrestlerMatches(w2.allMatches,w2.id,w1.id)
w1.seed = w2.seed
w1.bracket_line = w2.bracket_line
w1.pool = w2.pool
swapWrestlerMatches(w3.allMatches,w3.id,w2.id)
w2.seed = w3.seed
w2.bracket_line = w3.bracket_line
w2.pool = w3.pool