From be1df55e39136fe35ca2f4ac36a594bb9442ec31 Mon Sep 17 00:00:00 2001 From: jcwimer Date: Wed, 23 Dec 2015 13:08:19 +0000 Subject: [PATCH] Extras cant count for team points --- app/models/school.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/school.rb b/app/models/school.rb index 4cfa93b..edab530 100644 --- a/app/models/school.rb +++ b/app/models/school.rb @@ -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