from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) author = 'Your name here' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'Instruction_Maze' players_per_group = None num_rounds = 1 import csv with open('Instruction_Maze/data_A.csv',encoding='utf-8') as fileA: List_playerA = list(csv.DictReader(fileA)) lines = len(List_playerA) import csv with open('Instruction_Maze/data_B.csv',encoding='utf-8') as fileB: List_playerB = list(csv.DictReader(fileB)) import random item = random.randint(1,lines) class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): seconds = models.IntegerField()