mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Advance wrestlers after teampointadjust in case its added after the last match in a pool. Also added coin flip tie breaker
This commit is contained in:
@@ -10,6 +10,10 @@ class Wrestler < ActiveRecord::Base
|
||||
self.tournament.destroyAllMatches
|
||||
end
|
||||
|
||||
def lastFinishedMatch
|
||||
allMatches.select{|m| m.finished == 1}.sort_by{|m| m.bout_number}.last
|
||||
end
|
||||
|
||||
def totalDeductedPoints
|
||||
points = 0
|
||||
self.deductedPoints.each do |d|
|
||||
|
||||
Reference in New Issue
Block a user