统计结果改为数组返回

This commit is contained in:
guange 2015-07-24 22:54:42 +08:00
parent 71970e1942
commit 0a300724d3
1 changed files with 3 additions and 1 deletions

View File

@ -39,7 +39,9 @@ class Repository::Git < Repository
end
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
def report_last_commit