stats: display 12 weeks of feedbacks

This commit is contained in:
Pierre de La Morinerie 2019-04-02 14:29:00 +02:00
parent 78867e5679
commit 031c40aa55
2 changed files with 10 additions and 13 deletions

View file

@ -132,7 +132,7 @@ class StatsController < ApplicationController
Feedback.ratings.fetch(:happy) => "Satisfaits"
}
number_of_weeks = 6
number_of_weeks = 12
totals = Feedback
.group_by_week(:created_at, last: number_of_weeks, current: false)
.count