调试、打印
This commit is contained in:
parent
0a1afd7c45
commit
6aa332d1f6
|
@ -711,8 +711,7 @@ update
|
||||||
end
|
end
|
||||||
all_author = all_author.collect {|c| c.gsub(%r{<.+@.+>}, '') }
|
all_author = all_author.collect {|c| c.gsub(%r{<.+@.+>}, '') }
|
||||||
commits_by_author = repository.commits(all_author, @date_from, @date_to)
|
commits_by_author = repository.commits(all_author, @date_from, @date_to)
|
||||||
logger.info "start******************************************************************" + commits_by_author
|
Rails.logger.debug "######################################{commits_by_author}"
|
||||||
logger.info "end**************************************************************8"
|
|
||||||
|
|
||||||
fields = commits_by_author.collect {|r| r.first}
|
fields = commits_by_author.collect {|r| r.first}
|
||||||
commits_data = commits_by_author.collect {|r| r.last}
|
commits_data = commits_by_author.collect {|r| r.last}
|
||||||
|
@ -721,7 +720,7 @@ update
|
||||||
commits_data = commits_data + [0]*(10 - commits_data.length) if commits_data.length<10
|
commits_data = commits_data + [0]*(10 - commits_data.length) if commits_data.length<10
|
||||||
|
|
||||||
# Remove email adress in usernames
|
# Remove email adress in usernames
|
||||||
# fields = fields.collect {|c| c.gsub(%r{<.+@.+>}, '') }
|
fields = fields.collect {|c| c.gsub(%r{<.+@.+>}, '') }
|
||||||
|
|
||||||
graph = SVG::Graph::BarHorizontal.new(
|
graph = SVG::Graph::BarHorizontal.new(
|
||||||
:height => 400,
|
:height => 400,
|
||||||
|
|
Loading…
Reference in New Issue