from otree.api import Currency as c, currency_range import csv import pandas as pd import numpy as np import pickle import json from ._builtin import Page, WaitPage from .models import Constants class Instructions(Page): form_model='player' def is_displayed(self): return self.round_number==1 class Demographics(Page): form_model = 'player' form_fields = ['age', 'gender', 'education', 'income'] def is_displayed(self): return self.round_number==1 class FinancialLiteracyTest(Page): form_model = 'player' form_fields = ['crt_risk', 'crt_ret', 'crt_perc', ] timeout_seconds=120 def is_displayed(self): return self.round_number==1 def before_next_page(self): self.player.check_answers() page_sequence = [ Instructions, Demographics, FinancialLiteracyTest, ]