from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) import random author = 'Your name here' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'Mturk3_debriefing' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): Final1 = models.TextField( widget=widgets.Textarea (attrs={'rows': 3, 'cols': 16}), blank=False ) Final2 = models.TextField( widget=widgets.Textarea (attrs={'rows': 3, 'cols': 16}), blank=False ) Final3a = models.IntegerField ( choices = [ [0, '0, Not determinant'], [1, '1, Slightly determinant'], [2, '2, Highly determinant'], ] ) Final3b = models.IntegerField ( choices=[ [0, '0, Not determinant'], [1, '1, Slightly determinant'], [2, '2, Highly determinant'], ] ) Final3c = models.IntegerField ( choices=[ [0, '0, Not determinant'], [1, '1, Slightly determinant'], [2, '2, Highly determinant'], ] ) Final3d = models.IntegerField ( choices=[ [0, '0, Not determinant'], [1, '1, Slightly determinant'], [2, '2, Highly determinant'], ] ) Final3e = models.IntegerField ( choices=[ [0, '0, Not determinant'], [1, '1, Slightly determinant'], [2, '2, Highly determinant'], ] ) Final3f = models.IntegerField ( choices=[ [0, '0, Not determinant'], [1, '1, Slightly determinant'], [2, '2, Highly determinant'], ] ) Final4 = models.IntegerField ( choices = [ [1, 'Yes, in all rounds'], [2, 'Yes, in most rounds'], [3, 'Yes, but in very few rounds'], [3, 'No, not at all'], ] ) FinalCC = models.IntegerField ( choices = [ [1, 'Yes, in all rounds'], [2, 'Yes, in most rounds'], [3, 'Yes, but in very few rounds'], [3, 'No, not at all'], ] ) Final5 = models.IntegerField ( choices = [ [1, 'Yes, in all rounds'], [2, 'Yes, in most rounds'], [3, 'Yes, but in very few rounds'], [3, 'No, not at all'], ] ) Final6a = models.IntegerField ( choices = [ [1, 'Males'], [2, 'Females'], [3, 'Performance does not depend on gender'], ] ) Final6b = models.IntegerField ( choices=[ [1, 'Scheduled Caste'], [2, 'Scheduled Tribe'], [3, 'Other backward castes'], [4, 'General'], [5, 'Other'], [6, 'Performance does not depend on caste'], ] ) Final6c = models.IntegerField ( choices=[ [1, 'Muslim'], [2, 'Hindu'], [3, 'Sikh'], [4, 'Christian'], [5, 'Buddhist'], [6, 'Parsi'], [7, 'Other'], [8, 'Performance does not depend on religion'], ] ) Final7 = models.IntegerField ( choices = [ [1, 'Yes, always'], [2, 'Yes, sometimes'], [3, 'Yes, but rarely'], [3, 'No, not at all'], ] ) Final8 = models.IntegerField ( choices = [ [1, 'Yes, always'], [2, 'Yes, sometimes'], [3, 'Yes, but rarely'], [3, 'No, not at all'], ] )