Work on Impexium import speed
This commit is contained in:
@@ -134,7 +134,7 @@ def get_event_person_id_w_event_badge_id(
|
||||
def create_update_event_badge_obj_v4(
|
||||
event_badge_dict_obj: Event_Badge_Base|dict,
|
||||
event_badge_id: int|str = None,
|
||||
# account_id: int|str = None,
|
||||
# account_id: int = None,
|
||||
# event_id: int|str = None,
|
||||
event_person_id: int|str = None,
|
||||
create_sub_obj: bool = False,
|
||||
|
||||
@@ -484,7 +484,7 @@ def create_update_event_person_obj_v4(
|
||||
create_update_event_person_profile_obj_result = create_update_event_person_profile_obj_v4(
|
||||
event_person_profile_dict_obj = event_person_profile_obj,
|
||||
event_person_profile_id = event_person_profile_id,
|
||||
# account_id = account_id,
|
||||
account_id = account_id,
|
||||
# event_id = event_id,
|
||||
event_person_id = event_person_id,
|
||||
fail_any = fail_any,
|
||||
|
||||
@@ -98,7 +98,7 @@ def get_event_person_id_w_event_person_profile_id(
|
||||
def create_update_event_person_profile_obj_v4(
|
||||
event_person_profile_dict_obj: Event_Person_Profile_Base|dict,
|
||||
event_person_profile_id: int|str = None,
|
||||
# account_id: int|str = None,
|
||||
account_id: int = None,
|
||||
# event_id: int|str = None,
|
||||
event_person_id: int|str = None,
|
||||
create_sub_obj: bool = False,
|
||||
@@ -173,7 +173,8 @@ def create_update_event_person_profile_obj_v4(
|
||||
# NOTE: This is really only needed if a new contact is being created
|
||||
|
||||
log.info('Attempting to get Account ID from related object.')
|
||||
if account_id := event_person_profile_obj.account_id: pass
|
||||
if account_id: pass
|
||||
elif account_id := event_person_profile_obj.account_id: pass
|
||||
# elif account_id := event_person_profile_obj.account_id_random: pass
|
||||
else:
|
||||
if event_person_id: pass
|
||||
|
||||
Reference in New Issue
Block a user