Updated event location related. General code clean up and updates.
This commit is contained in:
@@ -19,6 +19,7 @@ from app.models.event_session_models import Event_Session_Base
|
||||
|
||||
|
||||
# ### BEGIN ### API Event Session Methods ### load_event_session_obj() ###
|
||||
# Updated 2022-09-23
|
||||
@logger_reset
|
||||
def load_event_session_obj(
|
||||
event_session_id: int|str,
|
||||
@@ -42,7 +43,7 @@ def load_event_session_obj(
|
||||
inc_event_person_profile: bool = False,
|
||||
inc_event_person_list: bool = False,
|
||||
inc_event_presentation_list: bool = False,
|
||||
inc_event_presenter_cat: bool = False, # Concantinate presenter names
|
||||
inc_event_presenter_cat: bool = False, # Concatenate presenter names
|
||||
inc_event_presenter_list: bool = False,
|
||||
inc_event_registration_list: bool = False,
|
||||
inc_event_track: bool = False,
|
||||
@@ -91,6 +92,7 @@ def load_event_session_obj(
|
||||
if inc_event_badge_list: pass
|
||||
if inc_event_device_list: pass
|
||||
|
||||
# Updated 2021-10-21
|
||||
if inc_event_file_list:
|
||||
log.info('Need to include event file list...')
|
||||
|
||||
@@ -112,9 +114,6 @@ def load_event_session_obj(
|
||||
event_file_id = event_file_rec.get('event_file_id', None),
|
||||
enabled = enabled,
|
||||
inc_hosted_file = inc_hosted_file,
|
||||
# model_as_dict = True,
|
||||
# by_alias = by_alias,
|
||||
# exclude_unset = False,
|
||||
):
|
||||
event_file_result_list.append(load_event_file_result)
|
||||
else:
|
||||
@@ -147,9 +146,6 @@ def load_event_session_obj(
|
||||
event_file_id = event_file_rec.get('event_file_id', None),
|
||||
enabled = enabled,
|
||||
inc_hosted_file = inc_hosted_file,
|
||||
# model_as_dict = True,
|
||||
# by_alias = by_alias,
|
||||
# exclude_unset = False,
|
||||
):
|
||||
event_file_result_list.append(load_event_file_result)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user