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

@@ -361,7 +361,7 @@ def update_event_session_obj_v3(
def update_event_session_obj(
event_session_id: int|str, # Ideally the int ID should be passed. This allows for updating of the id_random value.
event_session_obj_up: Event_Session_Base,
create_missing_obj: bool = False,
create_sub_obj: bool = False,
) -> bool:
log.setLevel(logging.WARNING) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.debug(locals())
@@ -385,7 +385,7 @@ def update_event_session_obj(
if poc_event_person_obj_up_result := update_event_person_obj(
event_person_id=poc_event_person_id,
event_person_obj_up=poc_event_person_obj_up,
create_missing_obj=create_missing_obj,
create_sub_obj=create_sub_obj,
):
log.debug(poc_event_person_obj_up_result)
else:
@@ -413,7 +413,7 @@ def update_event_session_obj(
if event_presentation_obj_up_result := update_event_presentation_obj(
event_presentation_id=event_presentation_id,
event_presentation_obj_up=event_presentation_obj_up,
create_missing_obj=create_missing_obj,
create_sub_obj=create_sub_obj,
):
log.debug(event_presentation_obj_up_result)
else: