1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

This fixes a bug where moving from two pools to four did not work

This commit is contained in:
2019-02-05 14:15:09 +00:00
parent d0cf5301e2
commit 80ae130aa8
2 changed files with 11 additions and 0 deletions

View File

@@ -7,6 +7,8 @@ class GeneratePoolNumbers
@weight.wrestlers.each do |wrestler|
if wrestler.pool and (wrestler.pool) > (@weight.pools)
resetPool
elsif @weight.one_pool_empty
resetPool
end
end
if @weight.pools == 4