from otree.api import * doc = """ Show Total Results """ class C(BaseConstants): NAME_IN_URL = 'wb_total_results' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): pass # PAGES class MyPage(Page): pass class ResultsWaitPage(WaitPage): #wait_for_all_groups = True #auf alle Gruppen warten def after_all_players_arrive(group: Group): #hier gibts nur eine Gruppe daher brauchen wir vorherigen Befehl nicht pass def vars_for_template(player: Player): return dict( body_text = "Bitte warten Sie, bis Ihnen das Gesamtergebnis des Experiments angezeigt wird." ) class Results(Page): def vars_for_template(player: Player): #from otree.settings import POINTS_CUSTOM_NAME #POINTS_CUSTOM_NAME='' return dict( payoff_Taler = round (player.participant.payoff, 2), payoff_Euro = player.participant.payoff_plus_participation_fee(), myestimate = player.participant.estimate_correct, totaldon = player.session.total_donation.to_real_world_currency(player.session) ) page_sequence = [ResultsWaitPage, Results]