def user_export_artist_json(request, username, artist):
    
    uh = UserHistory(username)
    uh.load_if_possible()
    
    try:
        return jsonify({"username": username, "artist":artist, "weeks":uh.artists[artist]})
    except __HOLE__:
        raise Http404("No such artist.")
dataset/ETHPy150Open andrewgodwin/lastgraph/lastgui/views.py/user_export_artist_json