Working on event related models and methods.
This commit is contained in:
@@ -27,15 +27,12 @@ def load_event_session_obj(
|
||||
inc_event_device_list: bool = False,
|
||||
inc_event_exhibit_list: bool = False,
|
||||
inc_event_file_list: bool = False,
|
||||
inc_event_location_list: bool = False,
|
||||
inc_event_location: bool = False,
|
||||
inc_event_person_list: bool = False,
|
||||
inc_event_presentation_list: bool = False,
|
||||
inc_event_presenter_list: bool = False,
|
||||
inc_event_registration_list: bool = False,
|
||||
inc_event_session_list: bool = False,
|
||||
inc_event_track_list: bool = False,
|
||||
inc_event_cfg: bool = False,
|
||||
inc_event_registration_cfg: bool = False,
|
||||
inc_event_track: bool = False,
|
||||
inc_poc_event_person: bool = False,
|
||||
inc_poc_person: bool = False,
|
||||
#inc_user: bool = False,
|
||||
@@ -97,7 +94,7 @@ def load_event_session_obj(
|
||||
# sql_limit = ''
|
||||
|
||||
sql = f"""
|
||||
SELECT `event_presentation`.id AS 'event_session_id', `event_presentation`.id_random AS 'event_session_id_random'
|
||||
SELECT `event_presentation`.id AS 'event_presentation_id', `event_presentation`.id_random AS 'event_presentation_id_random'
|
||||
FROM `event_presentation` AS `event_presentation`
|
||||
WHERE `event_presentation`.event_session_id = :event_session_id
|
||||
{sql_enabled}
|
||||
@@ -113,13 +110,12 @@ def load_event_session_obj(
|
||||
event_presentation_id = event_presentation_obj.get('event_presentation_id', None)
|
||||
if event_presentation_obj := load_event_presentation_obj(
|
||||
event_presentation_id=event_presentation_id,
|
||||
enabled=enabled,
|
||||
inc_event_abstract_list=inc_event_abstract_list,
|
||||
inc_event_device_list=inc_event_device_list,
|
||||
inc_event_file_list=inc_event_file_list,
|
||||
inc_event_person_list=inc_event_person_list,
|
||||
inc_event_presentation_list=inc_event_presentation_list,
|
||||
inc_event_presenter_list=inc_event_presenter_list,
|
||||
inc_event_track_list=inc_event_track_list,
|
||||
):
|
||||
data = event_presentation_obj.dict(by_alias=True, exclude_unset=True)
|
||||
event_presentation_obj_li.append(data)
|
||||
|
||||
Reference in New Issue
Block a user