Work on Impexium import speed
This commit is contained in:
@@ -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