diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-04-28 23:57:48 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-04-28 23:57:48 -0400 |
commit | 7297cff5b674a61fd57ccc46eb75173011bd205c (patch) | |
tree | 1e62d875fb4b25507261a5ef72d82d3cc473c68d /app/models | |
parent | dd4c9e16c529bdbf0d055b279ed2dadc0c2aae13 (diff) |
fix riot_api
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/statistic.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/statistic.rb b/app/models/statistic.rb index b4608b8..fefa3a8 100644 --- a/app/models/statistic.rb +++ b/app/models/statistic.rb @@ -16,7 +16,7 @@ class Statistic < ActiveRecord::Base after_save :update_match def update_match - if (self.name == "win") and (self.value > 0) + if (self.name == "win") and (self.value) self.match.winner = self.match.teams.find{|t| t.users.include? self.user} end if (self.match.status == 2) and (self.match.finished?) |