Working on order, carts, and Stripe

This commit is contained in:
Scott Idem
2022-01-23 18:31:45 -05:00
parent 4a8c77d4e0
commit b0537723a7
4 changed files with 12 additions and 7 deletions

View File

@@ -170,11 +170,14 @@ def update_person_kiss(
# Look for a contact_id in the contact_obj
if contact_id: pass
elif contact_id := person_obj.contact.id: pass
elif person_obj.contact:
contact_id = person_obj.contact.id
# Look for a user_id in the person_obj
if user_id: pass
elif user_id := person_obj.user.id: pass
elif person_obj.user:
user_id = person_obj.user.id
# if user_id:
# # Link to an existing user
# log.info(f'Adding user_id to person_dict. User ID: {user_id}')