From 2b99bbd83637aed4beffe0ae7795f0226b9b13d0 Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 7 Mar 2023 10:24:19 +0100 Subject: [PATCH] =?UTF-8?q?correctif(cadastre):=20certaines=20parcelles=20?= =?UTF-8?q?cadastrales=20ne=20contiennent=20pas=20la=20surface.=20cf:=20ca?= =?UTF-8?q?dastre=20:=20numero:=204120=20commune:=2073094=20prefixe:=20000?= =?UTF-8?q?=20section:=20A=20=C3=A0=20CREST=20VOLAND?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/geo_area.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/geo_area.rb b/app/models/geo_area.rb index 57040c80d..d18252301 100644 --- a/app/models/geo_area.rb +++ b/app/models/geo_area.rb @@ -199,11 +199,12 @@ class GeoArea < ApplicationRecord end def surface - if legacy_cadastre? + api_surface = if legacy_cadastre? properties['surface_parcelle'] else properties['contenance'] end + api_surface ? api_surface : area end def prefixe