summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-04-28 21:21:47 -0400
committerAndrewMurrell <amurrel@purdue.edu>2014-04-28 21:21:47 -0400
commit8db5113a761d443374a64e5e9fe877fafa3f0a50 (patch)
tree2ee26da4aee9926d44c9fe7faaa3d5705a4a16fc /app
parentfeffb3b186ad2b73bd9868a1eb24ab20f9c71507 (diff)
Fixed status 2-3 transition and statistic sampling.
Diffstat (limited to 'app')
-rw-r--r--app/models/match.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/match.rb b/app/models/match.rb
index 219e662..5c3a022 100644
--- a/app/models/match.rb
+++ b/app/models/match.rb
@@ -7,8 +7,8 @@ class Match < ActiveRecord::Base
def finished?
ok = true
- tournament_stage.scoring_method.stats_needed.each do |stat|
- ok &= statistics.where(match: self, name: stat).nil?
+ tournament_stage.scoring.stats_needed.each do |stat|
+ ok &= !statistics.where(match: self, name: stat).nil?
end
ok
end