Exclude draft Dossiers and unpublished Procedures from Stats
This commit is contained in:
parent
2074ac93ba
commit
e370c4e393
1 changed files with 2 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
|||
class StatsController < ApplicationController
|
||||
|
||||
def index
|
||||
procedures = Procedure
|
||||
dossiers = Dossier
|
||||
procedures = Procedure.where(:published => true)
|
||||
dossiers = Dossier.where.not(:state => :draft)
|
||||
|
||||
@procedures_30_days_flow = thirty_days_flow_hash(procedures)
|
||||
@dossiers_30_days_flow = thirty_days_flow_hash(dossiers)
|
||||
|
|
Loading…
Reference in a new issue