from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) doc = 'This page collects the IDs of the participants who will participate in the study.' class Constants(BaseConstants): name_in_url = 'ParticipantPool3' players_per_group = None num_rounds = 1 instructions_template = 'ParticipantPool3/instructions.html' class Subsession(BaseSubsession): pass class Group(BaseGroup): def set_payoffs(self): for p in self.get_players(): p.set_payoff() class Player(BasePlayer): Prolific_ID = models.StringField(label='Please enter your Prolific ID') TimeZone = models.StringField(label="What is the study's scheduled time in your timezone?") Reminder = models.BooleanField(choices=[[True, 'Yes'], [False, 'No']], label="Will you set an alarm or reminder to ensure you're on time for part two?") def other_player(self): return self.get_others_in_group()[0]