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