Beispiel #1
0
def register():
    twitter_handle = request.args["twitter_handle"]
    artists = request.args.getlist("artist")
    
    u = User()
    u.add_or_update(twitter_handle,artists)
    
    return ''
Beispiel #2
0
def user_matches():
    twitter_handle = request.args["twitter_handle"]
    
    u = User()
    handles = u.get_match(twitter_handle)
    return jsonify(soulmates=handles)