mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-04 13:43:48 +00:00
Fixed an infinite loop in pool_order when calculating pool order for a single pool bracket
This commit is contained in:
@@ -36,6 +36,10 @@ class Wrestler < ActiveRecord::Base
|
||||
def total_points_deducted
|
||||
CalculateWrestlerTeamScore.new(self).deductedPoints
|
||||
end
|
||||
|
||||
def total_pool_points_for_pool_order
|
||||
CalculateWrestlerTeamScore.new(self).poolPoints + CalculateWrestlerTeamScore.new(self).bonusWinPoints
|
||||
end
|
||||
|
||||
def next_match
|
||||
unfinished_matches.first
|
||||
|
||||
Reference in New Issue
Block a user