Work on event importing and related

This commit is contained in:
Scott Idem
2021-10-19 21:21:11 -04:00
parent f5f09f0516
commit 53c6c6b51c
8 changed files with 345 additions and 7 deletions

View File

@@ -62,7 +62,7 @@ def load_event_obj(
exclude_unset: bool = True,
model_as_dict: bool = False,
) -> Event_Base|bool:
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.debug(locals())
if event_id := redis_lookup_id_random(record_id_random=event_id, table_name='event'): pass
@@ -231,6 +231,7 @@ def load_event_obj(
enabled = enabled,
limit = limit,
inc_event_file_list = inc_event_file_list,
inc_event_location = inc_event_location,
inc_event_presentation_list = inc_event_presentation_list,
inc_event_presenter_cat = inc_event_presenter_cat,
inc_event_presenter_list = inc_event_presenter_list,

View File

@@ -53,7 +53,7 @@ def load_event_session_obj(
exclude_unset: bool = True,
model_as_dict: bool = False,
) -> Event_Session_Base|bool:
log.setLevel(logging.WARNING) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.debug(locals())
if event_session_id := redis_lookup_id_random(record_id_random=event_session_id, table_name='event_session'): pass
@@ -136,6 +136,7 @@ def load_event_session_obj(
# event_session_obj.event_file_list = event_file_dict_list
# else: event_session_obj.event_file_list = []
log.debug(f'Get event location? Include Event Location: {inc_event_location} Event Location ID: {event_location_id}')
if inc_event_location and event_location_id:
log.info('Need to include event location...')
if event_location_obj := load_event_location_obj(