Minor changes
This commit is contained in:
@@ -176,7 +176,7 @@ async def get_obj_li(
|
|||||||
enabled: str = 'enabled',
|
enabled: str = 'enabled',
|
||||||
hidden: str = 'not_hidden', # hidden, not_hidden, all,
|
hidden: str = 'not_hidden', # hidden, not_hidden, all,
|
||||||
# order_by_li: dict = None,
|
# 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_order_by_li: str = Header(None),
|
||||||
dh_testing: str = Header(None),
|
dh_testing: str = Header(None),
|
||||||
h_order_by_li: str = Header(None),
|
h_order_by_li: str = Header(None),
|
||||||
@@ -193,7 +193,7 @@ async def get_obj_li(
|
|||||||
response: Response = Response,
|
response: Response = Response,
|
||||||
# commons: Common_Route_Params = Depends(common_route_params), # Switch to this later... sooner
|
# 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())
|
log.debug(locals())
|
||||||
|
|
||||||
if order_by_li:
|
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.
|
# 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)
|
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)
|
log.debug(sql_result)
|
||||||
|
|
||||||
base_name = obj_type_li[obj_name]['base_name']
|
base_name = obj_type_li[obj_name]['base_name']
|
||||||
|
|||||||
Reference in New Issue
Block a user