from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class Survey(Page): form_model = 'player' form_fields = ['strategy', 'choice', 'poacher_strategy'] def before_next_page(self): self.participant.payoff += self.participant.vars["total_payoff"] class Finish(Page): form_model = 'player' def before_next_page(self): self.participant.payoff = max(0,self.participant.payoff) page_sequence = [Survey, Finish]