provision birthdate from national register
This commit is contained in:
parent
0f98e1a9cc
commit
269680a67e
|
@ -59,6 +59,9 @@ class AuthenticAdapter(DefaultAdapter):
|
|||
# fix street name
|
||||
attributes['rue'] = attributes['rue'].split('(')[0]
|
||||
|
||||
if 'dateNaissance' in attributes:
|
||||
attributes['dateNaissance'] = attributes['dateNaissance'].replace('.', '/')
|
||||
|
||||
if 'lieuxMariage' in attributes:
|
||||
# change from list to string
|
||||
attributes['lieuxMariage'] = '|'.join(attributes.get('lieuxMariage'))
|
||||
|
@ -74,6 +77,7 @@ class AuthenticAdapter(DefaultAdapter):
|
|||
('boite', 'num_box'),
|
||||
('lieuxMariage', 'wedding_cities'),
|
||||
('lieuNaissance', 'birthplace'),
|
||||
('dateNaissance', 'birthdate'),
|
||||
]
|
||||
for nrn_attribute, user_attribute in attribute_mapping:
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue