We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1f04c48 + 97e2ee7 commit 8e9970fCopy full SHA for 8e9970f
app/controllers/reports_controller.rb
@@ -99,7 +99,7 @@ def index
99
100
# compute time-based breakdown of returning user counts
101
@returning_users_by_week = {}
102
- user_timepoints = ReportTimePoint.where(name: 'Weekly Returning Users', :date.lte => today).take(26)
+ user_timepoints = ReportTimePoint.where(name: 'Weekly Returning Users', :date.lte => today).order(date: :desc).take(26)
103
user_timepoints.each do |timepoint|
104
@returning_users_by_week[timepoint.date.to_s] = timepoint.value[:count]
105
end
0 commit comments