Simple bug fix for registration type code. Using value instead of name.

This commit is contained in:
2022-04-20 15:46:10 -04:00
parent 4a0151e922
commit d2e81bb488

View File

@@ -196,7 +196,7 @@ async def event_import_reg(
log.info('Found list of custom fields for an exhibitor. Searching for "exhibitor_reg_type') log.info('Found list of custom fields for an exhibitor. Searching for "exhibitor_reg_type')
for field in custom_fields: for field in custom_fields:
if field.get('name') == 'registration_type': if field.get('name') == 'registration_type':
event_badge_data['registration_type_code'] = field.get('name') event_badge_data['registration_type_code'] = field.get('value')
event_badge_data['registration_type'] = field.get('value') event_badge_data['registration_type'] = field.get('value')
break break
else: log.info('Found custom fields section, but no list was found.') else: log.info('Found custom fields section, but no list was found.')