A lot of work on event related modules. Also a lot of clean up.
This commit is contained in:
@@ -21,6 +21,8 @@ def load_event_presenter_obj(
|
||||
event_presenter_id: int|str,
|
||||
enabled: str = 'enabled', # enabled, disabled, all
|
||||
limit: int = 1000,
|
||||
inc_address: bool = False,
|
||||
inc_contact: bool = False,
|
||||
inc_event_abstract_list: bool = False, # For event_presenter and using load_event_person_obj
|
||||
inc_event_badge: bool = False, # Using load_event_person_obj
|
||||
inc_event_device_list: bool = False, # For event_presenter and using load_event_person_obj
|
||||
@@ -72,6 +74,8 @@ def load_event_presenter_obj(
|
||||
if event_person_obj := load_event_person_obj(
|
||||
event_person_id=event_person_id,
|
||||
enabled=enabled,
|
||||
inc_address=inc_address,
|
||||
inc_contact=inc_contact,
|
||||
inc_event_badge=inc_event_badge,
|
||||
inc_event_registration=inc_event_registration,
|
||||
inc_person=inc_person,
|
||||
@@ -82,6 +86,7 @@ def load_event_presenter_obj(
|
||||
else:
|
||||
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.debug(event_person_obj)
|
||||
event_presenter_obj.event_person = None
|
||||
log.setLevel(logging.WARNING) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
|
||||
# if inc_person:
|
||||
|
||||
Reference in New Issue
Block a user