Work on person methods and related
This commit is contained in:
@@ -126,7 +126,7 @@ def update_user_obj(
|
||||
create_sub_obj: bool = False,
|
||||
fail_any: bool = True, # Fail if any thing goes wrong for sub objects
|
||||
return_dict: bool = False,
|
||||
) -> bool:
|
||||
) -> bool|int:
|
||||
log.setLevel(logging.WARNING) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.debug(locals())
|
||||
|
||||
@@ -231,6 +231,7 @@ def update_user_obj(
|
||||
if user_obj_up_result := sql_update(data=user_dict_up, table_name='user', rm_id_random=True):
|
||||
log.debug(user_obj_up_result)
|
||||
return True
|
||||
# return user_id
|
||||
else:
|
||||
log.debug(user_obj_up_result)
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user