from otree import settings from otree.api import * import time doc = """ Final """ #SESSION class Constants(BaseConstants): name_in_url = "Final" players_per_group = None num_rounds = 1 #SUBSESSION class Subsession(BaseSubsession): pass #GROUP class Group(BaseGroup): pass ##PLAYER class Player(BasePlayer): time_end = models.FloatField() #FUNCTIONS #PAGES class Results(Page): @staticmethod def vars_for_template(player): player.time_end = round(time.time(),3) participant = player.participant participant.finished = True #SEQUENCE page_sequence = [Results]