from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class Instruction(Page): pass class Practice1_Songs(Page): form_model = 'player' form_fields = ['seconds','answer1','answer2','answer3','answer4','answer5'] def is_displayed(self): import time self.player.time_in = time.time() return 1 def vars_for_template(self): picture = 'Pic_Culture_Practice.png' return dict( picture = picture ) def before_next_page(self): import time self.player.time_out = time.time() page_sequence = [Instruction, Practice1_Songs]