Skip to content

Commit

Permalink
Modifie le tri des exports MPP pour être plus cohérent
Browse files Browse the repository at this point in the history
  • Loading branch information
goulvench committed Aug 6, 2024
1 parent 64a825c commit e4cdf14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/exports/mpp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module Deplaces
module_function

def objets
Objet.déplacés.examinés.order("recensements.created_at DESC")
Objet.déplacés.examinés.order("dossiers.accepted_at DESC, recensements.created_at DESC")
.includes(:departement, :commune, :edifice, :recensement)
.includes(recensement: [:dossier, :nouvelle_commune])
end
Expand Down Expand Up @@ -82,7 +82,7 @@ module Manquants
module_function

def objets
Objet.manquants.examinés.order("recensements.created_at DESC")
Objet.manquants.examinés.order("dossiers.accepted_at DESC, recensements.created_at DESC")
.includes(:departement, :commune, :recensement, recensement: :dossier)
end

Expand Down

0 comments on commit e4cdf14

Please sign in to comment.