Code review
This commit is contained in:
parent
58f840ac92
commit
141e23a381
18 changed files with 47 additions and 50 deletions
|
@ -19,10 +19,6 @@ class CARTO::SGMAP::API
|
|||
end
|
||||
|
||||
def self.base_url
|
||||
if Rails.env.production?
|
||||
'https://apicarto.sgmap.fr'
|
||||
else
|
||||
'https://apicarto.sgmap.fr'
|
||||
end
|
||||
'https://apicarto.sgmap.fr'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -10,7 +10,7 @@ class CARTO::SGMAP::QuartierPrioritaireAdapter
|
|||
def to_params
|
||||
params = {}
|
||||
|
||||
data_source[:features].each_with_index do |feature, index|
|
||||
data_source[:features].each do |feature|
|
||||
qp_code = feature[:properties][:code]
|
||||
|
||||
params[qp_code] = feature[:properties]
|
||||
|
@ -19,10 +19,4 @@ class CARTO::SGMAP::QuartierPrioritaireAdapter
|
|||
|
||||
params
|
||||
end
|
||||
|
||||
def properties_to_fetch
|
||||
[:code,
|
||||
:nom,
|
||||
:commune]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue