remove distinct in dashboard monthly traffic counting

This commit is contained in:
manson 2014-08-08 17:52:40 +08:00
parent fe2c1a9235
commit 8d0c326bbc
1 changed files with 1 additions and 1 deletions

View File

@ -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