Hey, I have a follow-up question: How can I run an already defined function at a group level under before_next_page?
My code is as follows:
def set_payoffs(group: Group):
players = group.get_players()
for p in players:
p.payoff = Constants.showup + p.participant.firstpayoff + p.participant.secondpayoff
class Payoffs(Page):
def before_next_page(player:Player, timeout_happened):
player.set_payoffs()
But it does not work. I appreciate your help, thank you!
Oguzhan