A lot of work on event related modules. Also a lot of clean up.
This commit is contained in:
@@ -52,6 +52,8 @@ def load_event_person_obj(
|
||||
event_person_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,
|
||||
inc_event_badge: bool = False,
|
||||
inc_event_exhibit_list: bool = False,
|
||||
@@ -105,7 +107,11 @@ def load_event_person_obj(
|
||||
|
||||
if inc_person:
|
||||
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
if person_obj := load_person_obj(person_id=person_id):
|
||||
if person_obj := load_person_obj(
|
||||
inc_address=inc_address,
|
||||
inc_contact=inc_contact,
|
||||
person_id=person_id
|
||||
):
|
||||
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.debug(person_obj)
|
||||
event_person_obj.person = person_obj.dict(by_alias=True, exclude_unset=True)
|
||||
|
||||
Reference in New Issue
Block a user