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 = 'survey2_0709' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): city = models.StringField(label="What is your city of birth?") year = models.IntegerField(min=1900, max=2020, label="In which year were you born?") exercise = models.IntegerField( choices=[[1, "Never"], [2, "A few times a month"], [3, "Once a week"], [4, "2-3 times a week"], [5, "Every day"]], label="How often do you exercise?" ) bike = models.BooleanField(choices=[[True, "Yes"], [False, "No"]], label="Do you own a bike")