统计结果改为数组返回

szzh
guange 10 years ago
parent 71970e1942
commit 0a300724d3

@ -39,7 +39,9 @@ class Repository::Git < Repository
end end
def commits(authors, start_date, end_date) def commits(authors, start_date, end_date)
scm.commits(authors, start_date, end_date) scm.commits(authors, start_date, end_date).map {|commit|
[commit[:author], commit[:num]]
}
end end
def report_last_commit def report_last_commit

Loading…
Cancel
Save