Work on event related routes, methods, and models

This commit is contained in:
Scott Idem
2021-11-09 15:23:12 -05:00
parent 567223ed66
commit 093cc3913b
8 changed files with 44 additions and 32 deletions

View File

@@ -113,7 +113,7 @@ async def get_event_obj_li(
exclude_unset: bool = True,
response: Response = Response,
):
log.setLevel(logging.WARNING) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.debug(locals())
data = {}
@@ -242,13 +242,14 @@ async def get_event_obj(
inc_product: bool = False,
inc_product_list: 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
by_alias: Optional[bool] = True,
exclude_unset: Optional[bool] = True,
response: Response = Response,
):
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.debug(locals())
if event_id := redis_lookup_id_random(record_id_random=event_id, table_name='event'): pass
@@ -261,6 +262,7 @@ async def get_event_obj(
approved = approved,
hidden = hidden,
review = review,
inc_file_count = inc_file_count,
inc_address = inc_address,
# inc_address_location = inc_address_location,
inc_contact = inc_contact,
@@ -346,7 +348,7 @@ async def get_account_obj_event_list(
exclude_unset: Optional[bool] = True,
response: Response = Response,
):
log.setLevel(logging.WARNING) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.debug(locals())
if account_id := redis_lookup_id_random(record_id_random=account_id, table_name='account'): pass