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

Assigned four pools correctly

This commit is contained in:
2015-02-09 10:26:56 -05:00
parent d52d462d77
commit b7122fda8b
2 changed files with 20 additions and 39 deletions

View File

@@ -16,7 +16,7 @@ class Bout
def giveBout(matches)
@matches = matches.sort_by{|x|[x.weight_max]}
@matches.each_with_index do |m, i|
bout = m.round * 100 + i
bout = m.round * 1000 + i
m.boutNumber = bout
m.save
end