Clean up and testing and bug fixes

This commit is contained in:
Scott Idem
2021-12-08 18:40:59 -05:00
parent 7aa2ecc4af
commit 08335c8b11
2 changed files with 2 additions and 2 deletions

View File

@@ -166,7 +166,7 @@ class Order_Cart_Base(BaseModel):
#log.setLevel(logging.DEBUG)
log.debug(locals())
if values['account_id_random']:
if values.get('account_id_random', None):
return redis_lookup_id_random(record_id_random=values['account_id_random'], table_name='account')
return None

View File

@@ -29,7 +29,7 @@ async def post_order_cart_obj(
exclude_unset: Optional[bool] = True,
response: Response = Response,
):
log.setLevel(logging.WARNING) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.debug(locals())
obj_type = 'order_cart'