1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-05-12 16:59:00 +00:00

Testing team points for pool to bracket

This commit is contained in:
2015-11-17 19:03:34 +00:00
parent 61ed7c9d69
commit 67727c6391
4 changed files with 121 additions and 8 deletions

View File

@@ -15,6 +15,10 @@ class Wrestler < ActiveRecord::Base
end
def totalTeamPoints
teamPointsEarned - totalDeductedPoints
end
def teamPointsEarned
points = 0.0
points = points + (poolWins.size * 1) + (pinWins.size * 2) + (techWins.size * 1.5) + (majorWins.size * 1) + placementPoints
end