From 4b76651ab6aa295eb9f2f9b7787f8d0fd612526c Mon Sep 17 00:00:00 2001 From: guntasgrewal Date: Mon, 7 Apr 2014 02:08:30 -0400 Subject: fix bugs --- app/controllers/matches_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/matches_controller.rb') 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 -- cgit v1.2.3