Minor changes and updates for AAPOR with Confex

This commit is contained in:
Scott Idem
2024-04-25 16:16:15 -04:00
parent a41f4f0a33
commit 0745ac2fd4
4 changed files with 18 additions and 10 deletions

View File

@@ -27,13 +27,14 @@ router = APIRouter()
# ### BEGIN ### API Confex ### import_event_session_list() ###
# Updated 2023-04-1
# processing time: 156 records @ 1457 seconds (sessions, locations, presentations, presenters, files)
# Updated 2024-04-25
@router.get('/event/{e_confex_event_id}/import_reg', response_model=Resp_Body_Base)
async def import_event_session_list(
e_confex_event_id: str = Query(..., min_length=5, max_length=22), # For AAPOR: aapor_2023 (2023-05)
e_confex_event_id: str = Query(..., min_length=5, max_length=22), # For AAPOR: aapor_2023 (2024-05); aapor_2023 (2023-05)
event_id: str = Query(..., min_length=11, max_length=22), # For AAPOR: 9jW-Db-SF-wt (1478 2023-05); x2H2P2MYlXU (1447 2022-05)
# Account ID For AAPOR: j5EBhRDqPuw
event_id: str = Query(..., min_length=11, max_length=22), # For AAPOR: MCz-Qm-48-j1 (1513 2024-05) 9jW-Db-SF-wt (1478 2023-05); x2H2P2MYlXU (1447 2022-05)
# Account ID For AAPOR: j5EBhRDqPuw (20)
begin_loop: int = 1,
end_loop: int = 250,
@@ -507,6 +508,8 @@ async def import_event_session_list(
# return False
# Presentation File List for Presenter
# NOTE: Only the files under ChildList_VendorFiles where used for AAPOR 2023.
# NOTE: There are more files under ChildList_Files. This was ignored for AAPOR 2023.
log.info('Get presentation files for a presenter...')
log.debug(confex_presentation_detail.get('ChildList_VendorFiles'))
event_presentation_data['confex_file_list'] = []