from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) class Constants(BaseConstants): name_in_url = 'survey' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): age = models.IntegerField(label='What is your age?', min=13, max=125) gender = models.IntegerField( label="Please select your gender.", choices=[ [1, 'Male'], [2, 'Female'], [3, 'Other'], [4, 'I prefer not to say.'], ] ) city = models.StringField(label='what city are you from?') hin = models.IntegerField( label="What is your household income (your parents)", choices=[ [1, 'less than 35000'], [2, 'Between 30,000 to including 45,000'], [3, 'Between 45,001 and including 65,0000'], [4, 'Between 65,001 up to and including 85,000'], [5, '85,001 and above'] ] ) studies = models.IntegerField( label="Please estimate how many studies you have participated in (excluding this study)", choices=[ [1, 'Less than 5 studies'], [2, 'Between 5 and less than 10 studies.'], [3, 'between 10 and less than 15 studies.'], [4, '15 or more studies.'], [5, 'I prefer not to say.'] ] ) crt_bat = models.IntegerField( label=''' A bat and a ball cost 22 dollars in total. The bat costs 20 dollars more than the ball. How many dollars does the ball cost?''' ) crt_widget = models.IntegerField( label=''' "If it takes 5 machines 5 minutes to make 5 widgets, how many minutes would it take 100 machines to make 100 widgets?" ''' ) crt_lake = models.IntegerField( label=''' In a lake, there is a patch of lily pads. Every day, the patch doubles in size. If it takes 48 days for the patch to cover the entire lake, how many days would it take for the patch to cover half of the lake? ''' )