Work on data store and related
This commit is contained in:
@@ -143,7 +143,7 @@ async def get_data_store_obj_w_code(
|
||||
|
||||
commons: Common_Route_Params = Depends(common_route_params),
|
||||
):
|
||||
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.debug(locals())
|
||||
|
||||
# ### SECTION ### Secondary data validation
|
||||
@@ -159,6 +159,7 @@ async def get_data_store_obj_w_code(
|
||||
):
|
||||
log.info('Loading successful. Returning result')
|
||||
data_store_obj = data_store_obj_result[0] # Get first record only
|
||||
log.debug(data_store_obj)
|
||||
return mk_resp(data=data_store_obj, response=commons.response)
|
||||
elif isinstance(data_store_obj_result, list) or data_store_obj_result is None: # Empty list or None
|
||||
log.info('No results')
|
||||
|
||||
Reference in New Issue
Block a user