inventorymgr/views/users.py
def user_detail(user_id: str) -> Any:
    """Server-side rendered detail view for users."""
    try:
        parsed_user_id = session["user_id"] if user_id == "me" else int(user_id)
    except ValueError:
        return f"'{user_id}' is not a valid user ID.", 404
    return render_template("user.html.j2", user=service.read_user(parsed_user_id))
Server-side rendered detail view for users.
Server-side rendered detail view for users.
Server - side rendered detail view for users .
def user_detail(user_id: str) -> Any:
    try:
        parsed_user_id = session["user_id"] if user_id == "me" else int(user_id)
    except ValueError:
        return f"'{user_id}' is not a valid user ID.", 404
    return render_template("user.html.j2", user=service.read_user(parsed_user_id))
def user_detail ( user_id : str ) -> Any : try : parsed_user_id = session [ "user_id" ] if user_id == "me" else int ( user_id ) except ValueError : return f"'{user_id}' is not a valid user ID." , 404 return render_template ( "user.html.j2" , user = service . read_user ( parsed_user_id ) )
Server-side rendered detail view for users.
Server - side rendered detail view for users .
"""Server-side rendered detail view for users."""
user_id
str