import time from otree import settings from otree.api import * #SESSION class C(BaseConstants): NAME_IN_URL = 'sg' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 #INSTRUCTIONS spectator_instructions = __name__ + "/shortinstructions_spectator.html" #SUBSESSION class Subsession(BaseSubsession): pass #GROUP class Group(BaseGroup): pass #PLAYER class Player(BasePlayer): game1_alloc = models.IntegerField(min=0,max=6) # PAGES class SpectatorGame1(Page): form_model = 'player' form_fields = ['game1_alloc'] @staticmethod def vars_for_template(player: Player): return dict(DEBUG=settings.DEBUG) page_sequence = [SpectatorGame1]