From 50a8ce271dc30fc8a5db1e6926510fffde0b2bb5 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Tue, 20 Jul 2021 14:02:08 -0400 Subject: [PATCH] Bug fix for post lists --- app/models/contact_models.py | 2 +- app/routers/lookup.py | 4 ++-- app/routers/post.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/models/contact_models.py b/app/models/contact_models.py index d472a78..4343a73 100644 --- a/app/models/contact_models.py +++ b/app/models/contact_models.py @@ -13,7 +13,7 @@ from app.models.address_models import Address_Base class Contact_Base(BaseModel): - log.setLevel(logging.WARNING) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL + log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL log.debug(locals()) id_random: Optional[str] = Field( diff --git a/app/routers/lookup.py b/app/routers/lookup.py index 8005a21..e255b22 100644 --- a/app/routers/lookup.py +++ b/app/routers/lookup.py @@ -54,7 +54,7 @@ async def get_lookup_li( # log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL log.debug(lu_time_zone_result) log.debug(type(lu_time_zone_result)) - # lu_time_zone_result = lu_time_zone_result[0:10] + # lu_time_zone_result = lu_time_zone_result[0:50] # fake_li = [] # import secrets # for time_zone in lu_time_zone_result: @@ -87,6 +87,6 @@ async def get_lookup_li( log.debug(response_data) response_data = response_data - log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL + # log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL log.debug(response_data) return mk_resp(data=response_data) diff --git a/app/routers/post.py b/app/routers/post.py index ed6158d..3c82fa2 100644 --- a/app/routers/post.py +++ b/app/routers/post.py @@ -93,7 +93,7 @@ async def get_post_obj_li( # ### BEGIN ### API Post ### get_account_obj_post_list() ### # Working well as of 2021-06-28. Using as a template for other routes. -@router.get('/post/{account_id}/post/list', response_model=Resp_Body_Base) +@router.get('/account/{account_id}/post/list', response_model=Resp_Body_Base) async def get_account_obj_post_list( account_id: str = Query(..., min_length=1, max_length=22), limit: int = 500, # For now this covers any included objects or object lists