from otree.api import * from itertools import cycle from collections import defaultdict from time import time c = Currency doc = """ These are the study instructions and this app also contains code to set the participant role and between subjects condition. """ class Constants(BaseConstants): name_in_url = 'csr_instr' players_per_group = None num_rounds = 1 conversion = 300 donation_percentage = "10" class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): treatment = models.StringField() task_role = models.StringField() # PAGES class MainMnp(Page): pass class YourPay(Page): pass class Example(Page): pass page_sequence = [MainMnp, YourPay, Example]