from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) author = 'Your name here' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'eel_survey' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): gender = models.IntegerField(choices=[(0, "Male"), (1, "Female"), (2, "Other")], label="What is your gender?") age = models.IntegerField(choices=[(1, "Younger than 20"), (2, "20-24"), (3, "25-29"), (4, "30-34"), (5, "35 or older")], label="How old are you?") study = models.IntegerField(choices=[(1, "Medicine"), (2, "Engineering"), (3, "Mathematics and computer science"), (4, "Natural science"), (5, "Law"), (6, "Economics and business"), (7, "Social science"), (8, "Humanities")], label="What is your field of study?") dice_generator = models.BooleanField(choices=[(True, "Physical"), (False, "Online")], label="Did you use a physical or an online dice?") risk1 = models.BooleanField() risk2 = models.BooleanField() risk3 = models.BooleanField() risk4 = models.BooleanField() risk5 = models.BooleanField() final = models.CurrencyField()