Work on import from Impexium for ISHLT with mutliple events.

This commit is contained in:
Scott Idem
2022-03-21 14:25:20 -04:00
parent 44898fbfd3
commit 0fa04710ff
4 changed files with 13 additions and 10 deletions

View File

@@ -28,7 +28,7 @@ api['headers'] = { 'Content-Type': 'application/json;charset=UTF-8' }
# Updated 2022-02-18
@logger_reset
def get_access_token():
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.debug(locals())
log.debug(f'App data:\n{app}')
@@ -64,7 +64,7 @@ def get_access_token():
# Updated 2022-02-18
@logger_reset
def authenticate():
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.debug(locals())
result = get_access_token()

View File

@@ -403,7 +403,7 @@ def create_update_event_person_obj_v4(
event_person_obj.event_id = event_id
log.debug(event_person_obj)
event_person_dict = event_person_obj.dict(by_alias=False, exclude_defaults=False, exclude_unset=True, exclude={'event_badge', 'event_person_profile', 'event_registration', 'created_on', 'updated_on'})
event_person_dict = event_person_obj.dict(by_alias=False, exclude_defaults=False, exclude_unset=True, exclude={'event_badge', 'event_person_profile', 'event_registration', 'created_on', 'updated_on', 'external_id_old'})
# ### SECTION ### Process data
if not event_badge_id:

View File

@@ -144,7 +144,7 @@ def create_update_event_person_profile_obj_v4(
event_person_profile_obj.id = event_person_profile_id
log.debug(event_person_profile_obj)
event_person_profile_dict = event_person_profile_obj.dict(by_alias=False, exclude_defaults=False, exclude_unset=True, exclude={'account_id', 'account_id_random', 'contact', 'event_cfg', 'event_id', 'event_id_random', 'event_person_id', 'event_person_id_random', 'organization', 'created_on', 'updated_on'})
event_person_profile_dict = event_person_profile_obj.dict(by_alias=False, exclude_defaults=False, exclude_unset=True, exclude={'account_id', 'account_id_random', 'contact', 'event_cfg', 'event_id', 'event_id_random', 'event_person_id', 'event_person_id_random', 'organization', 'created_on', 'updated_on', 'external_id_old'})
# ### SECTION ### Process data
contact_id = None
@@ -219,4 +219,4 @@ def create_update_event_person_profile_obj_v4(
else:
log.debug(f'Returning the Event Person Profile ID: {event_person_profile_id}')
return event_person_profile_id
# ### END ### API Event Person Profile Methods ### create_update_event_person_profile_obj_v4() ###
# ### END ### API Event Person Profile Methods ### create_update_event_person_profile_obj_v4() ###