inventorymgr/users.py
def update_self() -> Any:
    """Flask view to update current session's user as JSON."""
    user_obj = api.UpdatedUser.parse_obj(request.json)
    user = service.update_session_user(session["user_id"], user_obj)
    return api.User.from_orm(user).dict()
Flask view to update current session's user as JSON.
Flask view to update current session's user as JSON.
Flask view to update current session ' s user as JSON .
def update_self() -> Any:
    user_obj = api.UpdatedUser.parse_obj(request.json)
    user = service.update_session_user(session["user_id"], user_obj)
    return api.User.from_orm(user).dict()
def update_self ( ) -> Any : user_obj = api . UpdatedUser . parse_obj ( request . json ) user = service . update_session_user ( session [ "user_id" ] , user_obj ) return api . User . from_orm ( user ) . dict ( )
Flask view to update current session's user as JSON.
Flask view to update current session ' s user as JSON .
"""Flask view to update current session's user as JSON."""