A lot of work on event related modules. Also a lot of clean up.

This commit is contained in:
Scott Idem
2021-06-08 15:56:00 -04:00
parent b7f6a5ee2a
commit d37234d7d8
10 changed files with 66 additions and 34 deletions

View File

@@ -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)