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

Still trying to generate matches from tournament.

This commit is contained in:
2015-03-17 09:32:11 -04:00
parent 0e5dabac8a
commit e3a1323d39

View File

@@ -15,6 +15,7 @@ class Tournament < ActiveRecord::Base
@wrestlers = self.wrestlers
self.weights.sort_by{|x|[x.max]}.each do |weight|
@upcomingMatches = generateMatchups(@matches,@wrestlers,weight)
@matches = @upcomingMatches
end
@upcomingMatches = assignBouts(@upcomingMatches)
return @upcomingMatches