Code clean up and standardize
This commit is contained in:
@@ -171,7 +171,7 @@ def create_contact_obj(
|
||||
def update_contact_obj(
|
||||
contact_id: int|str, # Ideally the int ID should be passed. This allows for updating of the id_random value.
|
||||
contact_obj_up: Contact_Base,
|
||||
create_missing_obj: bool = False,
|
||||
create_sub_obj: bool = False,
|
||||
fail_any: bool = False, # Fail if any thing goes wrong for sub objects
|
||||
) -> bool:
|
||||
log.setLevel(logging.WARNING) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
@@ -197,7 +197,7 @@ def update_contact_obj(
|
||||
if address_obj_up_result := update_address_obj(
|
||||
address_id = address_id,
|
||||
address_obj_up = address_obj_up,
|
||||
create_missing_obj = create_missing_obj,
|
||||
create_sub_obj = create_sub_obj,
|
||||
):
|
||||
log.debug(address_obj_up_result)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user