Bug fix in order cart line model.
This commit is contained in:
@@ -46,7 +46,7 @@ async def post_order_cart_obj(
|
||||
# Update 2021-08-02 (partially)
|
||||
@router.patch('/{order_cart_id}', response_model=Resp_Body_Base)
|
||||
async def patch_order_cart_obj(
|
||||
order_cart_id: str = Query(..., min_length=1, max_length=22),
|
||||
order_cart_id: str = Query(..., min_length=11, max_length=22),
|
||||
order_cart_obj: Order_Cart_Base = None,
|
||||
repl_order_cart_line_list: Optional[bool] = False, # Replace all the lines instead of trying to update
|
||||
# was repl_order_cart_line_list # NOTE: It was with out _list, just _li
|
||||
@@ -57,7 +57,7 @@ async def patch_order_cart_obj(
|
||||
by_alias: Optional[bool] = True,
|
||||
exclude_unset: Optional[bool] = True,
|
||||
):
|
||||
log.setLevel(logging.WARNING) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.debug(locals())
|
||||
|
||||
log.debug(order_cart_obj)
|
||||
|
||||
Reference in New Issue
Block a user