diff --git a/app/models/match.rb b/app/models/match.rb index 4bf1158..d31d4c5 100644 --- a/app/models/match.rb +++ b/app/models/match.rb @@ -6,8 +6,10 @@ class Match < ActiveRecord::Base after_save do if self.finished == 1 && self.winner_id != nil - wrestler1.touch - wrestler2.touch + if self.w1 && self.w2 + wrestler1.touch + wrestler2.touch + end advance_wrestlers calcSchoolPoints end