summaryrefslogtreecommitdiff
path: root/app/controllers/matches_controller.rb
diff options
context:
space:
mode:
authorguntasgrewal <guntasgrewal@gmail.com>2014-04-07 02:08:30 -0400
committerguntasgrewal <guntasgrewal@gmail.com>2014-04-07 02:08:30 -0400
commit4b76651ab6aa295eb9f2f9b7787f8d0fd612526c (patch)
tree2f888242952da717cc148691c84067aad8742267 /app/controllers/matches_controller.rb
parent13fe3bab84f236b46b3dbda080a22051553346c2 (diff)
fix bugs
Diffstat (limited to 'app/controllers/matches_controller.rb')
-rw-r--r--app/controllers/matches_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/matches_controller.rb b/app/controllers/matches_controller.rb
index e88b6ef..8e7cc9e 100644
--- a/app/controllers/matches_controller.rb
+++ b/app/controllers/matches_controller.rb
@@ -177,7 +177,7 @@ class MatchesController < ApplicationController
@match.teams.each do |team|
team_scores[team] = 0
team.users.each do |user|
- team_scores[team] += scores[user.user_name]
+ team_scores[team] += scores[user.user_name].to_i
end
end