Use the initialisation date for the dossiers 30 days flow

We want to show when dossiers were published, not
created
This commit is contained in:
gregoirenovel 2017-04-26 14:26:03 +02:00
parent c7999b9691
commit dbf891b333

View file

@ -5,7 +5,7 @@ class StatsController < ApplicationController
dossiers = Dossier.where.not(:state => :draft)
@procedures_30_days_flow = thirty_days_flow_hash(procedures)
@dossiers_30_days_flow = thirty_days_flow_hash(dossiers)
@dossiers_30_days_flow = thirty_days_flow_hash(dossiers, :initiated_at)
@procedures_cumulative = cumulative_hash(procedures)
@dossiers_cumulative = cumulative_hash(dossiers)