mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-05-20 12:07:44 +00:00
Fix team score to have half a point
This commit is contained in:
@@ -51,7 +51,7 @@ class School < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def total_points_scored_by_wrestlers
|
||||
points = 0
|
||||
points = 0.0
|
||||
self.wrestlers.each do |w|
|
||||
if w.extra != true
|
||||
points = points + w.total_team_points
|
||||
@@ -61,7 +61,7 @@ class School < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def total_points_deducted
|
||||
points = 0
|
||||
points = 0.0
|
||||
deductedPoints.each do |d|
|
||||
points = points + d.points
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user