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