Simple bug fix for registration type code. Using value instead of name.
This commit is contained in:
@@ -196,7 +196,7 @@ async def event_import_reg(
|
||||
log.info('Found list of custom fields for an exhibitor. Searching for "exhibitor_reg_type')
|
||||
for field in custom_fields:
|
||||
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')
|
||||
break
|
||||
else: log.info('Found custom fields section, but no list was found.')
|
||||
|
||||
Reference in New Issue
Block a user