General clean up

This commit is contained in:
Scott Idem
2022-08-12 14:06:43 -04:00
parent 8bcd67d935
commit f067aefdca
7 changed files with 16 additions and 60 deletions

View File

@@ -107,7 +107,7 @@ async def get_event_obj_li(
inc_event_track_list: bool = False,
inc_poc_event_person: bool = False,
inc_poc_person: bool = False,
inc_user: bool = False,
# inc_user: bool = False,
x_account_id: str = Header(...),
by_alias: bool = True,
exclude_unset: bool = True,
@@ -192,7 +192,7 @@ async def get_event_obj_li(
inc_event_registration_cfg = inc_event_registration_cfg,
inc_poc_event_person = inc_poc_event_person,
# inc_poc_person = inc_poc_person,
inc_user = inc_user,
# inc_user = inc_user,
):
data = event_obj.dict(by_alias=by_alias, exclude_unset=exclude_unset) # pylint: disable=no-member
@@ -241,7 +241,7 @@ async def get_event_obj(
inc_poc_event_person: bool = False,
inc_product: bool = False,
inc_product_list: bool = False,
inc_user: bool = False,
# inc_user: bool = False,
inc_file_count: bool = False, # NOTE: file counts are from separate views
x_account_id: str = Header(...),
limit: int = 500, # For now this covers any included objects or object lists
@@ -289,7 +289,7 @@ async def get_event_obj(
inc_poc_event_person = inc_poc_event_person,
# inc_product = inc_product,
# inc_product_list = inc_product_list,
inc_user = inc_user,
# inc_user = inc_user,
limit = limit,
by_alias = by_alias,
exclude_unset = exclude_unset,
@@ -343,7 +343,7 @@ async def get_account_obj_event_list(
inc_poc_event_person: bool = False,
inc_product: bool = False,
inc_product_list: bool = False,
inc_user: bool = False,
# inc_user: bool = False,
x_account_id: str = Header(...),
by_alias: Optional[bool] = True,
exclude_unset: Optional[bool] = True,
@@ -398,7 +398,7 @@ async def get_account_obj_event_list(
inc_person = inc_person,
# inc_product = inc_product,
# inc_product_list = inc_product_list,
inc_user = inc_user,
# inc_user = inc_user,
):
event_result_list.append(load_event_result)
else: