Mostly adding event device model, methods, and routes. Also general clean up of code.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
from __future__ import annotations
|
||||
import datetime
|
||||
|
||||
from typing import Dict, List, Optional, Set, Union
|
||||
@@ -164,11 +163,9 @@ def load_event_obj(
|
||||
if inc_event_abstract_list: pass
|
||||
if inc_event_badge_list: pass
|
||||
|
||||
# Updated 2021-06-30
|
||||
# Updated 2022-03-09
|
||||
if inc_event_cfg:
|
||||
log.info('Need to include event configuration...')
|
||||
# event_id = event_rec.get('event_id', None)
|
||||
# log.debug(event_id)
|
||||
if event_cfg_result := load_event_cfg_obj(
|
||||
event_id = event_id,
|
||||
inc_event_registration_cfg = inc_event_registration_cfg,
|
||||
@@ -177,7 +174,7 @@ def load_event_obj(
|
||||
model_as_dict = model_as_dict,
|
||||
):
|
||||
event_obj.event_cfg = event_cfg_result
|
||||
else: event_obj.event_cfg = None
|
||||
else: event_obj.event_cfg = {} # None
|
||||
|
||||
if inc_event_device_list: pass
|
||||
if inc_event_exhibit_list: pass
|
||||
|
||||
Reference in New Issue
Block a user