def get_rating(mentor_id, arg): user = User.get_by_id(int(arg)) rating = Rating.check(user, str(mentor_id)) return rating.get("value")