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