Procedure: small renaming on mean_time
This commit is contained in:
parent
6725c5e34c
commit
4d4dba1550
1 changed files with 1 additions and 1 deletions
|
@ -405,7 +405,7 @@ class Procedure < ApplicationRecord
|
||||||
times = dossiers
|
times = dossiers
|
||||||
.state_termine
|
.state_termine
|
||||||
.pluck(start_attribute, end_attribute)
|
.pluck(start_attribute, end_attribute)
|
||||||
.map { |times| times[1] - times[0] }
|
.map { |(start_date, end_date)| end_date - start_date }
|
||||||
|
|
||||||
if times.present?
|
if times.present?
|
||||||
times.sum.fdiv(times.size).ceil
|
times.sum.fdiv(times.size).ceil
|
||||||
|
|
Loading…
Reference in a new issue