Improve admin query on landing

This commit is contained in:
simon lehericey 2020-09-11 09:46:54 +02:00
parent 5ad3928e49
commit 63ea2045a7

View file

@ -43,7 +43,7 @@
%ul.numbers %ul.numbers
%li.number %li.number
.number-value .number-value
= number_with_delimiter(Procedure.includes(:administrateurs).publiees_ou_closes.flat_map(&:administrateurs).uniq.count, :locale => :fr) = number_with_delimiter(AdministrateursProcedure.joins(:procedure).merge(Procedure.publiees_ou_closes).select('distinct administrateur_id').count, :locale => :fr)
.number-label< .number-label<
administrations administrations
%br<> %br<>