Skip to content

Commit f0a4013

Browse files
committed
lil more review
1 parent d346493 commit f0a4013

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

app/controllers/basil_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ def review
410410
@recent_commissions = BasilCommission.all.includes(:entity, :user).order('id DESC').limit(100)
411411

412412
@commissions_per_user_id = BasilCommission.where('created_at > ?', 48.hours.ago).group(:user_id).order('count_all DESC').limit(5).count
413+
@unique_users_generating_count = BasilCommission.where('created_at > ?', 48.hours.ago).group(:user_id).count
413414
end
414415

415416
def commission

app/views/basil/review.html.erb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
<li><%= link_to user.display_name, user %>: <%= pluralize count, 'image' %></li>
1010
<% end %>
1111
</ol>
12+
13+
<div>
14+
<%= pluralize @unique_users_generating_count.count, 'unique user' %> over 48h
15+
</div>
1216
</div>
1317
<div class="col s9">
1418
<% @recent_commissions.each do |commission| %>

0 commit comments

Comments
 (0)