Merge pull request #5560 from betagouv/improve_landing_perfs

Amélioration de la perf de la page d'accueil
This commit is contained in:
LeSim 2020-09-11 11:40:09 +02:00 committed by GitHub
commit c8cc1fc43f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,7 @@
%ul.numbers
%li.number
.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<
administrations
%br<>