Work on badge template and related
This commit is contained in:
@@ -26,7 +26,7 @@ router = APIRouter()
|
||||
@router.get('/event/{e_impexium_event_id}/import_reg', response_model=Resp_Body_Base)
|
||||
async def event_import_reg(
|
||||
e_impexium_event_id: str = Query(..., min_length=11, max_length=22), # For ISHLT: 42_AM (2022-04); EX22_AM (2022-04); 41V_2 (2021-04)
|
||||
details: bool = False,
|
||||
details: bool = True,
|
||||
page: int = 0, # 250 per page from Impexium
|
||||
event_id: str = Query(..., min_length=11, max_length=22), # For ISHLT: ZDzTBlevhZs (2022-04)
|
||||
# Account ID For ISHLT: d8TqXqf1EOg
|
||||
@@ -146,6 +146,9 @@ async def event_import_reg(
|
||||
event_badge_data['badge_type_code'] = 'EXALL'
|
||||
event_badge_data['badge_type'] = 'Exhibitor All Access'
|
||||
break
|
||||
else: log.info('Found custom fields section, but no list was found.')
|
||||
else:
|
||||
log.warning('The custom fields were not found at all. Are the "details" being included?')
|
||||
event_badge_data['event_badge_template_id'] = 3
|
||||
elif e_impexium_event_id == '2022HEART':
|
||||
if not reg_type_code and event_registrant.get('guestOfRecordNumber'):
|
||||
|
||||
Reference in New Issue
Block a user