from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class Intro_page(Page): timeout_seconds = 240 def is_displayed(self): import time self.participant.vars['start_time'] = time.time() self.participant.vars['participant_done'] = False return True class self_rating_page(Page): timeout_seconds = 90 form_model = 'player' form_fields = ['ability_to_lie', 'ability_to_detect_lies'] def before_next_page(self): import time self.participant.vars['wait_page_arrival'] = time.time() page_sequence = [Intro_page, self_rating_page]