[Fix #146] Use published_at for procedures in Stats

Instead of created_at, which is less
representative
This commit is contained in:
gregoirenovel 2017-07-17 15:10:05 +02:00
parent 1c1a47d83a
commit 20b4c7ce6f

View file

@ -10,8 +10,8 @@ class StatsController < ApplicationController
@procedures_count = procedures.count
@dossiers_count = dossiers.count
@procedures_cumulative = cumulative_hash(procedures)
@procedures_in_the_last_4_months = last_four_months_hash(procedures)
@procedures_cumulative = cumulative_hash(procedures, :published_at)
@procedures_in_the_last_4_months = last_four_months_hash(procedures, :published_at)
@dossiers_cumulative = cumulative_hash(dossiers, :initiated_at)
@dossiers_in_the_last_4_months = last_four_months_hash(dossiers, :initiated_at)