Skip to content

Commit

Permalink
update rules template
Browse files Browse the repository at this point in the history
  • Loading branch information
BeritJanssen committed Feb 20, 2024
1 parent 0e17232 commit a19b265
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,20 @@ def __init__(self):
]

def first_round(self, experiment):
''' Provide the first rounds of the experiment,
before session creation
The first_round must return at least one Info or Explainer action
Consent and Playlist are often desired, but optional
'''
# 1. Informed consent (optional)
rendered = render_to_string('consent/consent.html')
consent = Consent(rendered, title=_(
'Informed consent'), confirm=_('I agree'), deny=_('Stop'))

# 2. Choose playlist (only relevant if there are multiple playlists the participant can choose from)
# 2. Choose playlist (optional, only relevant if there are multiple playlists the participant can choose from)
playlist = Playlist(experiment.playlists.all())

# 3. Explainer (optional)
# 3. Explainer
explainer = Explainer(
instruction='Welcome to this new experiment',
steps=[
Expand Down

0 comments on commit a19b265

Please sign in to comment.