Procedure: small renaming on mean_time

This commit is contained in:
simon lehericey 2018-09-27 14:30:31 +02:00
parent 6725c5e34c
commit 4d4dba1550

View file

@ -405,7 +405,7 @@ class Procedure < ApplicationRecord
times = dossiers
.state_termine
.pluck(start_attribute, end_attribute)
.map { |times| times[1] - times[0] }
.map { |(start_date, end_date)| end_date - start_date }
if times.present?
times.sum.fdiv(times.size).ceil