Merge pull request #2468 from betagouv/fix-stats

Fix a typo
This commit is contained in:
gregoirenovel 2018-08-27 18:00:52 +02:00 committed by GitHub
commit d47e448442
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -96,7 +96,7 @@ class StatsController < ApplicationController
totals = Feedback.where(created_at: 5.weeks.ago..Time.now).group_by_week(:created_at).count
Feedback::rating.values.map do |rating|
Feedback.ratings.values.map do |rating|
data = Feedback
.where(created_at: 5.weeks.ago..Time.now, rating: rating)
.group_by_week(:created_at)