Working on all module routes, methods, and models

This commit is contained in:
Scott Idem
2021-06-23 16:38:35 -04:00
parent c1d23d15f4
commit 6189ea154d
9 changed files with 788 additions and 193 deletions

View File

@@ -11,13 +11,14 @@ from app.models.membership_cfg_models import Membership_Cfg_Base
# ### BEGIN ### API Membership Cfg Methods ### load_membership_cfg_obj() ###
# Updated 2021-06-23
def load_membership_cfg_obj(
account_id: int|str,
by_alias: bool = True,
exclude_unset: bool = True,
model_as_dict: bool = False,
) -> Membership_Cfg_Base|dict|bool:
log.setLevel(logging.WARNING) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.debug(locals())
if account_id := redis_lookup_id_random(record_id_random=account_id, table_name='account'): pass