diff --git a/app/routers/e_impexium.py b/app/routers/e_impexium.py index 23aee6e..5dd4ddf 100644 --- a/app/routers/e_impexium.py +++ b/app/routers/e_impexium.py @@ -22,7 +22,7 @@ router = APIRouter() # ### BEGIN ### API Impexium ### event_import_reg() ### -# Updated 2022-04-15 +# Updated 2023-04-12 @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) @@ -534,7 +534,10 @@ async def event_import_reg( location = None if event_badge_data['city'] and state_province_abb and country_alpha_2_code and country_alpha_2_code == 'US': city = event_badge_data['city'] - location = f'{city}, {state_province_abb} {country_alpha_2_code}' + if country_alpha_3_code: # NOTE: Per ISHLT client wanting USA instead of US. -2023-04-12 + location = f'{city}, {state_province_abb} {country_alpha_3_code}' + else: + location = f'{city}, {state_province_abb} {country_alpha_2_code}' elif event_badge_data['city'] and state_province_abb and country and country == 'United States': city = event_badge_data['city'] location = f'{city}, {state_province_abb} {country}' @@ -638,6 +641,8 @@ async def event_import_reg( + + # ### BEGIN ### API Impexium ### event_check_individual() ### # Updated 2022-04-33 # @router.get('/event/{e_impexium_event_id}/{e_impexium_individual_id}/import_individual', response_model=Resp_Body_Base)