ISHLT requested change for US vs USA.
This commit is contained in:
@@ -22,7 +22,7 @@ router = APIRouter()
|
|||||||
|
|
||||||
|
|
||||||
# ### BEGIN ### API Impexium ### event_import_reg() ###
|
# ### 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)
|
@router.get('/event/{e_impexium_event_id}/import_reg', response_model=Resp_Body_Base)
|
||||||
async def event_import_reg(
|
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)
|
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
|
location = None
|
||||||
if event_badge_data['city'] and state_province_abb and country_alpha_2_code and country_alpha_2_code == 'US':
|
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']
|
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':
|
elif event_badge_data['city'] and state_province_abb and country and country == 'United States':
|
||||||
city = event_badge_data['city']
|
city = event_badge_data['city']
|
||||||
location = f'{city}, {state_province_abb} {country}'
|
location = f'{city}, {state_province_abb} {country}'
|
||||||
@@ -638,6 +641,8 @@ async def event_import_reg(
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# ### BEGIN ### API Impexium ### event_check_individual() ###
|
# ### BEGIN ### API Impexium ### event_check_individual() ###
|
||||||
# Updated 2022-04-33
|
# Updated 2022-04-33
|
||||||
# @router.get('/event/{e_impexium_event_id}/{e_impexium_individual_id}/import_individual', response_model=Resp_Body_Base)
|
# @router.get('/event/{e_impexium_event_id}/{e_impexium_individual_id}/import_individual', response_model=Resp_Body_Base)
|
||||||
|
|||||||
Reference in New Issue
Block a user