Bug fix for post lists
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user