FIX: deactivate chart trends for now (#6364)

This commit is contained in:
Joffrey JAFFEUX 2018-09-05 23:33:29 +02:00 committed by GitHub
parent 26082688d1
commit e59622f2ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -242,7 +242,7 @@ class Report
report_about report, User.real, :count_by_signup_date report_about report, User.real, :count_by_signup_date
end end
add_prev_data report, User.real, :count_by_signup_date, report.prev_start_date, report.prev_end_date # add_prev_data report, User.real, :count_by_signup_date, report.prev_start_date, report.prev_end_date
end end
def self.report_new_contributors(report) def self.report_new_contributors(report)
@ -262,7 +262,7 @@ class Report
if report.facets.include?(:prev_period) if report.facets.include?(:prev_period)
prev_period_data = User.real.count_by_first_post(report.prev_start_date, report.prev_end_date) prev_period_data = User.real.count_by_first_post(report.prev_start_date, report.prev_end_date)
report.prev_period = prev_period_data.sum { |k, v| v } report.prev_period = prev_period_data.sum { |k, v| v }
report.prev_data = prev_period_data.map { |k, v| { x: k, y: v } } # report.prev_data = prev_period_data.map { |k, v| { x: k, y: v } }
end end
data.each do |key, value| data.each do |key, value|