from otree.api import * import sys import os sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from session_utils import ( check_session_full, update_participant_state, remove_participant, cleanup_stale_participants, get_session_status, try_add_participant_if_space ) doc = """ Your app description """ class C(BaseConstants): NAME_IN_URL = 'consent' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): def creating_session(self): initialize_session_state(self.session) class Group(BaseGroup): pass class Player(BasePlayer): pass # PAGES class Consent(Page): form_model = 'player' def is_displayed(player): return True # Let oTree handle participant limits class ConsentWaitPage(WaitPage): pass class Results(Page): pass page_sequence = [Consent]