summaryrefslogtreecommitdiff
path: root/lib/sampling/manual.rb
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-04-30 10:52:56 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-04-30 10:52:56 -0400
commitf1b2a1f25b839237ff1791ffc4586bc466409874 (patch)
tree5770fc3ed0e3145d6617db44cb29ecd96b82dc44 /lib/sampling/manual.rb
parent55f6da9556391a9676a425256a9ae1048c300e17 (diff)
remove debug code
Diffstat (limited to 'lib/sampling/manual.rb')
-rw-r--r--lib/sampling/manual.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/sampling/manual.rb b/lib/sampling/manual.rb
index a9f9de4..853516c 100644
--- a/lib/sampling/manual.rb
+++ b/lib/sampling/manual.rb
@@ -44,17 +44,10 @@ module Sampling
def handle_user_interaction(user, params)
# => Save sampling_params as statistics
- require 'pp'
- puts('>'*80)
- pp @match
- puts('>'*80)
if (@match.tournament_stage.tournament.hosts.include? user)
manual_params = params.require(:manual)
winner = Team.find(manual_params[:winner])
@match.users.each do |user|
- puts('>'*80)
- pp "MAKING statistics BIIIIIIIITCH"
- puts('>'*80)
Statistic.create(match: @match, user: user,
name: "win", value: winner.users.include?(user))
@match.stats_from(self.class).reject{|s|s=="win"}.each do |stat|