Work on event files and related
This commit is contained in:
@@ -18,7 +18,7 @@ def load_event_cfg_obj(
|
||||
inc_event_registration_cfg: bool = False,
|
||||
limit: int = 1000,
|
||||
by_alias: bool = True,
|
||||
exclude_unset: bool = True,
|
||||
exclude_unset: bool = False, # Including even unset fields. Prevent null value issues on the frontend.
|
||||
model_as_dict: bool = False,
|
||||
) -> Event_Cfg_Base|bool:
|
||||
#log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
|
||||
@@ -42,7 +42,7 @@ def load_event_presenter_obj(
|
||||
inc_user: bool = False, # Using load_event_person_obj
|
||||
limit: int = 1000,
|
||||
by_alias: bool = True,
|
||||
exclude_unset: bool = True,
|
||||
exclude_unset: bool = False,
|
||||
model_as_dict: bool = False,
|
||||
) -> Event_Presenter_Base|bool:
|
||||
log.setLevel(logging.WARNING) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
@@ -91,7 +91,7 @@ def load_event_presenter_obj(
|
||||
if event_cfg_result := load_event_cfg_obj(
|
||||
event_id = event_id,
|
||||
by_alias = by_alias,
|
||||
exclude_unset = exclude_unset,
|
||||
# exclude_unset = exclude_unset,
|
||||
model_as_dict = model_as_dict,
|
||||
):
|
||||
event_presenter_obj.event_cfg = event_cfg_result
|
||||
|
||||
@@ -79,7 +79,9 @@ class Event_Session_Base(BaseModel):
|
||||
presentation_file_path: Optional[str]
|
||||
presentation_file_size: Optional[str]
|
||||
|
||||
enable_event_file_approval_option: Optional[bool]
|
||||
# Field(default_factory = lambda:secrets.token_urlsafe(default_num_bytes))
|
||||
enable_event_file_approval_option: Optional[bool] = Field(default=False)
|
||||
# enable_event_file_approval_option: Optional[bool] = False # Setting a default to try and prevent client side null value issues.
|
||||
|
||||
file_count: Optional[int]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user