change branch to branch_name

This commit is contained in:
nigel007 2019-06-16 12:38:03 +08:00
parent 817f577a6b
commit 6c12c43df0
1 changed files with 3 additions and 2 deletions

View File

@ -18,9 +18,10 @@ class ContributionsController < ApplicationController
@del_count = Hash.new
@change_count = Hash.new
branches.each do |branch|
branch_name = branch.name
Rails.logger.info("!!!!!!! This is the branch:")
Rails.logger.info(branch)
static_total_per_user = @g.rep_stats(project_id, :rev => branch)
Rails.logger.info(branch_name)
static_total_per_user = @g.rep_stats(project_id, :rev => branch_name)
static_total_per_user.each do |static|
uname = static.uname.to_s
change_num = static.changes.to_i