from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) import random author = 'Benjamin Pichl' doc = """ Survey """ 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): understood_mech = models.IntegerField( choices=[ [1, 'Nein'], [2, 'Ja'], ], widget=widgets.RadioSelect ) manip_bid = models.IntegerField( choices=[ [1, 'Nein'], [2, 'Ja'], ], widget=widgets.RadioSelect ) manip_pref = models.IntegerField( choices=[ [1, 'Nein'], [2, 'Ja'], ], widget=widgets.RadioSelect ) fair_open = models.StringField(max_length=100) efficient_open = models.StringField(max_length=100) fair_likert = models.IntegerField( choices=[ [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], ], widget=widgets.RadioSelectHorizontal ) efficient_likert = models.IntegerField( choices=[ [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], ], widget=widgets.RadioSelectHorizontal ) experience_sowi = models.IntegerField( choices=[ [1, 'Nein'], [2, 'Ja'], ], widget=widgets.RadioSelect ) logcap_baseball = models.IntegerField() logcap_machines = models.IntegerField() logcap_roses = models.IntegerField() part_age = models.IntegerField(min=16) part_sex = models.IntegerField( choices=[ [1, 'männlich'], [2, 'weiblich'], [3, 'Anderes'], ], widget=widgets.RadioSelect ) part_program = models.IntegerField( choices=[ [1, 'WiWi'], [2, 'SoZi'], [3, 'PoWi'], [4, 'Psychologie'], [5, 'Medizin'], [6, 'Sonstiges'], ], widget=widgets.RadioSelect ) part_degree = models.IntegerField( choices=[ [1, 'Matura/Abitur'], [2, 'Bachelor'], [3, 'Diplom'], [4, 'Master'], [5, 'Doktorat'], ], widget=widgets.RadioSelect ) part_semester = models.IntegerField()