from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) author = 'Your name here' doc = """ Your app description """ import config_collat class Constants(BaseConstants): name_in_url = 'survey' players_per_group = None num_rounds = 1 list_of_treatments = config_collat.parameters.keys() randomized_treatment = list(list_of_treatments)[0] treatment = randomized_treatment # randomized_treatment dic_of_treatment_parameters = config_collat.parameters[treatment] timer = int(dic_of_treatment_parameters['survey_timeout']) survey_payoff = c(int(dic_of_treatment_parameters['survey_payoff'])) class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): survey_timeout = models.IntegerField(initial=0) total_earnings_dollar = models.CharField() strategy = models.LongStringField(label='Please describe the strategy that you used in making your decisions:') problems = models.CharField(label='Did you encounter any problems while completing the task?' ,choices= [['Yes', 'Yes'],['No', 'No']], widget=widgets.RadioSelect) problems_text = models.LongStringField(label='If so, please describe the problems you encountered:', blank=True) satisfaction_with_strat = models.CharField(label='You were satisfied with your strategy:',choices= [['Strongly Agree', 'Strongly Agree'], ['Agree', 'Agree'], ['Neutral', 'Neutral'], ['Disagree', 'Disagree'], ['Strongly Disagree', 'Strongly Disagree']],widget=widgets.RadioSelect) understanding = models.CharField(label='You understood the whole study:',choices= [['Strongly Agree', 'Strongly Agree'], ['Agree', 'Agree'], ['Neutral', 'Neutral'], ['Disagree', 'Disagree'], ['Strongly Disagree', 'Strongly Disagree']],widget=widgets.RadioSelect) understanding_text = models.LongStringField(label='If not, please explain:', blank=True) quiz_earnings = models.CurrencyField() instruction_earnings = models.CurrencyField() game_earnings = models.CurrencyField() survey_earnings = models.CurrencyField() total_earnings = models.CurrencyField()