Skip to content

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
matclayton committed Aug 14, 2017
1 parent 5b343a5 commit 4ce504a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,11 @@ control group - there is no way to differentiate between these cases.
You can also weight the experiments using the following techniques

::
alternative = participant(request).enroll('example_test', {'control': 99, 'v2': 1})
::
alternative = participant(request).enroll('example_test', {'control': 99, 'v2': 1})

::
{% experiment example_test control 99 %}v2{% endexperiment %}
{% experiment example_test v2 1 %}v2{% endexperiment %}
::
{% experiment example_test control 99 %}v2{% endexperiment %}
{% experiment example_test v2 1 %}v2{% endexperiment %}

By default the participant function expects a HttpRequest object, but you can
alternatively pass a user or session as a keyword argument
Expand Down

0 comments on commit 4ce504a

Please sign in to comment.