@split.route('<STR_LIT>', methods=['<STR_LIT:POST>'])<EOL>def set_experiment_winner(experiment):
redis = _get_redis_connection()<EOL>experiment = Experiment.find(redis, experiment)<EOL>if experiment:<EOL><INDENT>alternative_name = request.form.get('<STR_LIT>')<EOL>alternative = Alternative(redis, alternative_name, experiment.name)<EOL>if alternative.name in experiment.alternative_names:<EOL><INDENT>experiment.winner = alternative.name<EOL><DEDENT><DEDENT>return redirect(url_for('<STR_LIT>'))<EOL>
Mark an alternative as the winner of the experiment.