FIX: user visit stats on admin dashboard should show sum of values for 7 day and 30 day columns
This commit is contained in:
parent
81290d7f18
commit
76a14cd279
|
@ -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}}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue