summaryrefslogtreecommitdiff
path: root/app/models/statistic.rb
diff options
context:
space:
mode:
authortkimia <tkimia@purdue.edu>2014-04-29 16:41:35 -0400
committertkimia <tkimia@purdue.edu>2014-04-29 16:41:35 -0400
commit42d6e3b1cc05ef5172081682b53675e4827254d3 (patch)
tree240743892a6f0948774f1b89bf5bf58ed49f6416 /app/models/statistic.rb
parent0d6f7a3bfbf4c87510a1bcf967b618f98e149d49 (diff)
elimination works SOMETIMES... other times it just can't put down a damned winner
Diffstat (limited to 'app/models/statistic.rb')
-rw-r--r--app/models/statistic.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/statistic.rb b/app/models/statistic.rb
index d62d413..8abf1f4 100644
--- a/app/models/statistic.rb
+++ b/app/models/statistic.rb
@@ -23,8 +23,8 @@ class Statistic < ActiveRecord::Base
self.match.winner = self.match.teams.find{|t| t.users.include? self.user}
end
if (self.match.status == 2) and (self.match.finished?)
- #self.match.tournament_stage.scoring.score(self.match)
self.match.status = 3
+ self.match.tournament_stage.scheduling.finish_match(self.match)
end
self.match.save!
end