mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-08 07:22:38 +00:00
Still trying to generate matches from tournament.
This commit is contained in:
@@ -15,6 +15,7 @@ class Tournament < ActiveRecord::Base
|
|||||||
@wrestlers = self.wrestlers
|
@wrestlers = self.wrestlers
|
||||||
self.weights.sort_by{|x|[x.max]}.each do |weight|
|
self.weights.sort_by{|x|[x.max]}.each do |weight|
|
||||||
@upcomingMatches = generateMatchups(@matches,@wrestlers,weight)
|
@upcomingMatches = generateMatchups(@matches,@wrestlers,weight)
|
||||||
|
@matches = @upcomingMatches
|
||||||
end
|
end
|
||||||
@upcomingMatches = assignBouts(@upcomingMatches)
|
@upcomingMatches = assignBouts(@upcomingMatches)
|
||||||
return @upcomingMatches
|
return @upcomingMatches
|
||||||
|
|||||||
Reference in New Issue
Block a user