General code clean up and bug fixes. Still working on order and orders that are carts

This commit is contained in:
Scott Idem
2022-01-22 18:53:21 -05:00
parent ab0b900721
commit 4a8c77d4e0
5 changed files with 11 additions and 10 deletions

View File

@@ -181,7 +181,6 @@ async def person_obj_external_id(
external_id: str = Query(..., min_length=5, max_length=75),
inc_address: bool = False,
inc_contact: bool = False,
# inc_person: bool = False,
inc_user: bool = False,
inc_user_role_list: bool = False,
commons: Common_Route_Params = Depends(common_route_params),
@@ -190,7 +189,6 @@ async def person_obj_external_id(
log.debug(locals())
account_id = commons.x_account_id
# account_id = 99 # WARNING!!!! Get rid of 99!
if person_data := get_person_rec_w_external_id(account_id=account_id, external_id=external_id): pass
else: return mk_resp(data=None, status_code=404, response=commons.response)