Merge pull request #5989 from tchak/improuve-geometry-after-party
After_party : correction de la tâche `remove_invalid_geometries after_party`, qui échouait après une heure (#5989)
This commit is contained in:
commit
02f313c204
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ namespace :after_party do
|
|||
task remove_invalid_geometries: :environment do
|
||||
puts "Running deploy task 'remove_invalid_geometries'"
|
||||
|
||||
geo_areas = GeoArea.where(source: :selection_utilisateur)
|
||||
geo_areas = GeoArea.where(source: :selection_utilisateur).includes(champ: [:geo_areas, :type_de_champ])
|
||||
progress = ProgressReport.new(geo_areas.count)
|
||||
geo_areas.find_each do |geo_area|
|
||||
if !geo_area.valid?
|
||||
|
|
Loading…
Reference in a new issue