Skip to content

Commit b4b7a4d

Browse files
author
root
committed
Fix #322
1 parent 537abf3 commit b4b7a4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: app/reports/repository_contributors_stats.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def commits_per_author_with_aliases
7070
# registered_committers = [ committer,... ]
7171
registered_committers = []
7272
user_committer_mapping = {}
73-
Changeset.where(repository_id: repository.id).where('user_id IS NOT NULL').group(:committer).includes(:user).each do |x|
73+
Changeset.select('changesets.committer, changesets.user_id').where('repository_id = ? and user_id IS NOT NULL', repository.id).group(:committer, :user_id).each do |x|
7474
name = "#{x.user.firstname} #{x.user.lastname}"
7575
registered_committers << x.committer
7676
user_committer_mapping[[name, x.user.mail]] ||= []

0 commit comments

Comments
 (0)