File tree 1 file changed +3
-3
lines changed
lib/redmine_git_hosting/patches
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ def commits_per_hours
73
73
74
74
75
75
def commits_per_day
76
- total_commits_by_day = Changeset . where ( "repository_id = ?" , self . id ) . group ( :commit_date ) . count
77
- total_changes_by_day = Change . joins ( :changeset ) . where ( "#{ Changeset . table_name } .repository_id = ?" , self . id ) . group ( :commit_date ) . count
76
+ total_commits_by_day = Changeset . where ( "repository_id = ?" , self . id ) . group ( :commit_date ) . order ( :commit_date ) . count
77
+ total_changes_by_day = Change . joins ( :changeset ) . where ( "#{ Changeset . table_name } .repository_id = ?" , self . id ) . group ( :commit_date ) . order ( :commit_date ) . count
78
78
79
79
data = { }
80
80
data [ :categories ] = total_commits_by_day . keys
@@ -194,7 +194,7 @@ def commits_per_author
194
194
committers = Changeset . where ( "repository_id = ?" , self . id ) . map ( &:committer ) . uniq
195
195
196
196
committers . each do |committer |
197
- commits = Changeset . where ( "repository_id = ? AND committer = ?" , self . id , committer ) . group ( :commit_date ) . count
197
+ commits = Changeset . where ( "repository_id = ? AND committer = ?" , self . id , committer ) . group ( :commit_date ) . order ( :commit_date ) . count
198
198
199
199
committer_name = committer . split ( '<' ) [ 0 ] . strip
200
200
committer_mail = committer . split ( '<' ) [ 1 ] . gsub ( '>' , '' )
You can’t perform that action at this time.
0 commit comments