diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index a1bf835..aa8d5f8 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -257,7 +257,7 @@ module ApplicationHelper visits = Impression.where( created_at: { '$gte' => Time.now.beginning_of_day-i.days, '$lte' => Time.now.end_of_day-i.days} - ).distinct(:request_hash).count + ).count site.month_traffic_cache['result'].push([ Time.now.beginning_of_day-i.days, visits]) end