from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class EndingArrivalWaitPage(WaitPage): def after_all_players_arrive(self): self.subsession.calculate_cash() class Results(Page): def vars_for_template(self): return dict( my_points = int(self.player.playerScore), my_performance_cash = int(self.player.playerCash), total_cash = int(self.player.playerTotalPayout), my_id=self.participant.vars['this_uid'], my_score=int(self.participant.vars['score']), megaRound=self.session.vars['megaRound'] ) page_sequence = [ EndingArrivalWaitPage, Results ]