Moving things to use the common_route_params. Rewriting most of things order and order_cart related!

This commit is contained in:
Scott Idem
2022-01-18 16:32:21 -05:00
parent 6ccc0eb6c9
commit 49d8a7f0dc
6 changed files with 1174 additions and 60 deletions

View File

@@ -353,11 +353,22 @@ async def get_account_cfg_obj(
if sys_module:
if sys_module == 'membership':
membership_cfg_obj = load_account_cfg_obj(account_id=account_id, inc_membership_cfg=True).dict(by_alias=by_alias, exclude_unset=exclude_unset)
membership_cfg_obj = load_account_cfg_obj(
account_id = account_id,
inc_membership_cfg = True
).dict(
by_alias = commons.by_alias,
exclude_unset = commons.exclude_unset
)
data = membership_cfg_obj
return mk_resp(data=data, response=commons.response)
else:
if account_cfg_obj := load_account_cfg_obj(account_id=account_id).dict(by_alias=by_alias, exclude_unset=exclude_unset):
if account_cfg_obj := load_account_cfg_obj(
account_id = account_id
).dict(
by_alias = commons.by_alias,
exclude_unset = commons.exclude_unset
):
data = account_cfg_obj
return mk_resp(data=data, response=commons.response)
else: