Code clean up and standardize

This commit is contained in:
Scott Idem
2021-08-25 10:58:39 -04:00
parent 7859d1d2b2
commit 1369874dc2
32 changed files with 479 additions and 195 deletions

View File

@@ -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: