summaryrefslogtreecommitdiff
path: root/app/controllers/matches_controller.rb
diff options
context:
space:
mode:
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