Minor changes
This commit is contained in:
@@ -176,7 +176,7 @@ async def get_obj_li(
|
||||
enabled: str = 'enabled',
|
||||
hidden: str = 'not_hidden', # hidden, not_hidden, all,
|
||||
# order_by_li: dict = None,
|
||||
order_by_li: str = Header(None),
|
||||
order_by_li: str = Header(None), # Json formatted string in a key value format.
|
||||
dh_order_by_li: str = Header(None),
|
||||
dh_testing: str = Header(None),
|
||||
h_order_by_li: str = Header(None),
|
||||
@@ -193,7 +193,7 @@ async def get_obj_li(
|
||||
response: Response = Response,
|
||||
# commons: Common_Route_Params = Depends(common_route_params), # Switch to this later... sooner
|
||||
):
|
||||
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.debug(locals())
|
||||
|
||||
if order_by_li:
|
||||
@@ -247,7 +247,7 @@ async def get_obj_li(
|
||||
# NOTE: This call (without field_name, field_value, limit, offset) may need more testing.
|
||||
sql_result = sql_select(table_name=table_name, enabled=enabled, hidden=hidden, order_by_li=order_by_li, limit=limit, offset=offset)
|
||||
|
||||
log.setLevel(logging.WARNING) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
# log.setLevel(logging.WARNING) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.debug(sql_result)
|
||||
|
||||
base_name = obj_type_li[obj_name]['base_name']
|
||||
|
||||
Reference in New Issue
Block a user