def ajax_user_queuepos(request, username):
    "Returns what number the user is in the request queue."
    
    try:
        return jsonify(list(LastFmUser.queue()).index(LastFmUser.by_username(username)) + 1)
    except (ValueError, __HOLE__):
        return jsonify(None)


### Graphs ###
dataset/ETHPy150Open andrewgodwin/lastgraph/lastgui/views.py/ajax_user_queuepos