Moving things to use the common_route_params. Rewriting most of things order and order_cart related! Updating address and contact related. General code clean up.
This commit is contained in:
@@ -128,21 +128,19 @@ def load_person_obj(
|
||||
else:
|
||||
if person_rec := sql_select(table_name='v_person', record_id=person_id): pass
|
||||
else: return person_rec # None or False
|
||||
|
||||
log.debug(person_rec)
|
||||
|
||||
try:
|
||||
person_obj = Person_Base(**person_rec)
|
||||
# log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.debug(person_obj)
|
||||
except ValidationError as e:
|
||||
log.error(e.json())
|
||||
return False
|
||||
log.debug(person_obj)
|
||||
|
||||
# Updated 2021-12-14
|
||||
if inc_contact:
|
||||
log.info('Need to include contact data...')
|
||||
contact_id = person_rec.get('contact_id', None)
|
||||
contact_id = person_rec.get('contact_id')
|
||||
log.debug(contact_id)
|
||||
if contact_result := load_contact_obj(
|
||||
contact_id = contact_id,
|
||||
|
||||
Reference in New Issue
Block a user