stats: display 12 weeks of feedbacks
This commit is contained in:
parent
78867e5679
commit
031c40aa55
2 changed files with 10 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue