mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-14 00:49:54 +00:00
Extras cant count for team points
This commit is contained in:
@@ -22,8 +22,10 @@ class School < ActiveRecord::Base
|
|||||||
def totalWrestlerPoints
|
def totalWrestlerPoints
|
||||||
points = 0
|
points = 0
|
||||||
self.wrestlers.each do |w|
|
self.wrestlers.each do |w|
|
||||||
|
if w.extra != true
|
||||||
points = points + w.totalTeamPoints
|
points = points + w.totalTeamPoints
|
||||||
end
|
end
|
||||||
|
end
|
||||||
points
|
points
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user