General code clean up for debugging. Also work on event badge related.
This commit is contained in:
@@ -195,15 +195,15 @@ async def person_obj_external_id(
|
||||
person_id = person_data.get('person_id')
|
||||
|
||||
if person_dict := load_person_obj(
|
||||
person_id = person_id,
|
||||
limit = commons.limit,
|
||||
model_as_dict = True, # NOTE: returning model as a dict
|
||||
enabled = commons.enabled,
|
||||
inc_address = inc_address,
|
||||
inc_contact = inc_contact,
|
||||
inc_user = inc_user,
|
||||
inc_user_role_list = inc_user_role_list,
|
||||
):
|
||||
person_id = person_id,
|
||||
limit = commons.limit,
|
||||
model_as_dict = True, # NOTE: returning model as a dict
|
||||
enabled = commons.enabled,
|
||||
inc_address = inc_address,
|
||||
inc_contact = inc_contact,
|
||||
inc_user = inc_user,
|
||||
inc_user_role_list = inc_user_role_list,
|
||||
):
|
||||
if isinstance(person_dict, dict):
|
||||
response_data = person_dict
|
||||
else:
|
||||
@@ -338,6 +338,7 @@ async def get_person_obj(
|
||||
inc_post_list: bool = False, # Priority l2
|
||||
inc_post_comment_list: bool = False, # Priority l3
|
||||
inc_user: bool = False, # Priority l1
|
||||
|
||||
commons: Common_Route_Params = Depends(common_route_params),
|
||||
):
|
||||
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
|
||||
Reference in New Issue
Block a user