Bug fix in order cart line model. Need to create another _Base for order_line and order_cart_line
This commit is contained in:
@@ -762,7 +762,7 @@ def redis_lookup_id_random(record_id_random:int|str, table_name:str):
|
||||
|
||||
# ### BEGIN ### API Lib General ### lookup_id_random() ###
|
||||
def lookup_id_random(record_id:int, table_name:str):
|
||||
log.setLevel(logging.WARNING) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.debug(locals())
|
||||
|
||||
data = { 'id': record_id }
|
||||
@@ -777,7 +777,7 @@ def lookup_id_random(record_id:int, table_name:str):
|
||||
log.debug(select_results)
|
||||
log.debug(type(select_results))
|
||||
if isinstance(select_results, dict):
|
||||
log.info(f"""Record ID found: {str(select_results['id_random'])}""")
|
||||
# log.info(f"""Record ID found: {select_results['id_random']}""") # DOES UNCOMMENTING THIS BREAK STUFF???
|
||||
if record_id_random := select_results.get('id_random'):
|
||||
return str(record_id_random)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user