Browse files

Make sure control group is created

  • Loading branch information...
1 parent a0b0a8d commit 5494246d7a048de00ea3c82e69748c2e45f737c7 @theospears theospears committed Dec 17, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 experiments/utils.py
View
3 experiments/utils.py
@@ -49,7 +49,8 @@ def enroll(self, experiment_name, alternatives):
experiment = experiment_manager.get(experiment_name, None)
if experiment and experiment.is_displaying_alternatives():
- for alternative in alternatives:
+ alternatives_including_control = alternatives + [CONTROL_GROUP]
+ for alternative in alternatives_including_control:
experiment.ensure_alternative_exists(alternative)
assigned_alternative = self._get_enrollment(experiment)

0 comments on commit 5494246

Please sign in to comment.