1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-05 06:07:20 +00:00

Extras cant count for team points

This commit is contained in:
2015-12-23 13:08:19 +00:00
parent 67a457ad2f
commit be1df55e39

View File

@@ -22,7 +22,9 @@ class School < ActiveRecord::Base
def totalWrestlerPoints def totalWrestlerPoints
points = 0 points = 0
self.wrestlers.each do |w| self.wrestlers.each do |w|
points = points + w.totalTeamPoints if w.extra != true
points = points + w.totalTeamPoints
end
end end
points points
end end