FIX: user visit stats on admin dashboard should show sum of values for 7 day and 30 day columns

This commit is contained in:
Neil Lalonde 2015-06-15 13:16:23 -04:00
parent 81290d7f18
commit 76a14cd279
2 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,7 @@
</thead>
<tbody>
{{#unless loading}}
{{admin-report-per-day-counts report=visits}}
{{admin-report-counts report=visits}}
{{admin-report-counts report=signups}}
{{admin-report-counts report=topics}}
{{admin-report-counts report=posts}}

View File

@ -76,6 +76,7 @@ class Report
def self.report_visits(report)
basic_report_about report, UserVisit, :by_day, report.start_date, report.end_date
add_counts report, UserVisit, 'visited_at'
end
def self.report_signups(report)