mark known absence of weddings as -

This commit is contained in:
Frédéric Péters 2016-10-07 14:55:38 +02:00
parent 3c0b46ffb9
commit 3a6781b798
1 changed files with 3 additions and 0 deletions

View File

@ -65,6 +65,9 @@ class AuthenticAdapter(DefaultAdapter):
if 'lieuxMariage' in attributes:
# change from list to string
attributes['lieuxMariage'] = '|'.join(attributes.get('lieuxMariage'))
if not attributes['lieuxMariage']:
# special case "no wedding"
attributes['lieuxMariage'] = '-'
# assume all answers are for Belgium, this may not actually be true
attributes['pays'] = 'Belgique'