from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) import random author = 'Your name here' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'psyexp2' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): playerid = models.IntegerField() def playerid_random(self): self.playerid = random.randint(0,2) consent = models.BooleanField( label="Deneye katılmak için rızanızı veriyor musunuz?", choices=[ [True,"Evet"], [False,"Hayır"] ] ) age = models.IntegerField(label="Lütfen yaşınızı girin") gender = models.StringField( label="Lütfen atanmış cinsiyetinizi seçin", choices=["Erkek","Kadın"] ) crtTaken = models.BooleanField( label="Daha önce hiç CRT testi yaptınız mı?", choices=[ [True,"Evet"], [False,"Hayır"] ] ) crt1 = models.FloatField(label="Lütfen cevabı giriniz") crt2 = models.FloatField(label="Lütfen cevabı giriniz") crt3 = models.FloatField(label="Lütfen cevabı giriniz")