mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-26 16:20:55 +00:00
Added pages for teampointsadjust and spearated wrestler and school deducted points
This commit is contained in:
@@ -86,4 +86,19 @@ class Tournament < ActiveRecord::Base
|
||||
m.save
|
||||
end
|
||||
end
|
||||
|
||||
def pointAdjustments
|
||||
point_adjustments = []
|
||||
self.schools.each do |s|
|
||||
s.deductedPoints.each do |d|
|
||||
point_adjustments << d
|
||||
end
|
||||
end
|
||||
self.wrestlers.each do |w|
|
||||
w.deductedPoints.each do |d|
|
||||
point_adjustments << d
|
||||
end
|
||||
end
|
||||
point_adjustments
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user