summaryrefslogtreecommitdiff
path: root/lib/scoring/winner_takes_all.rb
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-04-29 14:49:50 -0400
committerAndrewMurrell <amurrel@purdue.edu>2014-04-29 14:49:50 -0400
commit577f203243b1ac914a3ee3f4635005be06d637c6 (patch)
tree33cfa9e1a43598d22676a4c3f2f9afb8ae19b53c /lib/scoring/winner_takes_all.rb
parent0d6f7a3bfbf4c87510a1bcf967b618f98e149d49 (diff)
Fixed peer review sampling and scoring.
Diffstat (limited to 'lib/scoring/winner_takes_all.rb')
-rw-r--r--lib/scoring/winner_takes_all.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/scoring/winner_takes_all.rb b/lib/scoring/winner_takes_all.rb
index 9c83fb9..5fc188a 100644
--- a/lib/scoring/winner_takes_all.rb
+++ b/lib/scoring/winner_takes_all.rb
@@ -1,15 +1,14 @@
module Scoring
module WinnerTakesAll
def self.stats_needed
- #return ["win"]
- ["win", "numDeaths", "turretsKilled", "championsKilled", "minionsKilled", "assists"]
+ return ["win"]
end
def self.score(match)
scores = {}
match.users.each do |user|
stats = Statistic.where(user: user, match: match)
- scores[user] = score_user(stats.where(name: "win").first.value)
+ scores[user] = score_user(stats.where(name: "win").first)
end
scores
end