Working on event person, registration, badge, session, presentation, and presenter create and update. _v3 things

This commit is contained in:
Scott Idem
2021-08-24 20:31:00 -04:00
parent 25ebdb6e76
commit 7859d1d2b2
12 changed files with 513 additions and 71 deletions

View File

@@ -232,6 +232,7 @@ def create_event_session_obj(
return_dict['event_presentation_list'] = []
if event_session_obj_new.event_presentation_list and isinstance(event_session_obj_new.event_presentation_list, list):
log.info(f'Event Presentation List was found. Loop through and create a new Event Presentation for each and link them to the new Event Session. Event Session ID: {event_session_id}')
for event_presentation_obj_new in event_session_obj_new.event_presentation_list:
# NOTE: This does not account for an edge case where the presentation already exists. Possibly as part of another session.
if create_event_presentation_obj_result := create_event_presentation_obj(
@@ -258,7 +259,7 @@ def create_event_session_obj(
log.info('Event Presentation List not found')
pass
log.info(f'The event session has been created. Event Session ID: {event_session_id}')
log.info(f'The Event Session has been created. Event Session ID: {event_session_id}')
return event_session_id
# ### END ### API Event Session Methods ### create_event_session_obj() ###