include support for lieuxMariage attribute
This commit is contained in:
parent
ce036202d5
commit
a838ce4679
|
@ -59,6 +59,10 @@ class AuthenticAdapter(DefaultAdapter):
|
|||
# fix street name
|
||||
attributes['rue'] = attributes['rue'].split('(')[0]
|
||||
|
||||
if attributes.get('lieuxMariage'):
|
||||
# change from list to string
|
||||
attributes['lieuxMariage'] = '|'.join(attributes.get('lieuxMariage'))
|
||||
|
||||
attribute_mapping = [
|
||||
('commune', 'city'),
|
||||
('rue', 'street'),
|
||||
|
@ -66,6 +70,7 @@ class AuthenticAdapter(DefaultAdapter):
|
|||
('numero', 'num_house'),
|
||||
('codePostal', 'zipcode'),
|
||||
('boite', 'num_box'),
|
||||
('lieuxMariage', 'wedding_cities'),
|
||||
]
|
||||
for nrn_attribute, user_attribute in attribute_mapping:
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue