from os import environ import random SESSION_CONFIGS = [ dict( name='consensus_counterfactual', app_sequence=['consent', 'instructions', 'nickname', 'prerating', 'instructions2', 'multiplayer_app', 'instructionspost', 'postrating', 'survey', 'thanks'], #app_sequence=['survey', 'thanks'], num_demo_participants=3, cellColors = random.shuffle(["IndianRed", "SkyBlue", "PaleGreen", "LemonChiffon"]), images = random.shuffle(['star', 'diamond', 'gear', 'moon']) ), ] # if you set a property in SESSION_CONFIG_DEFAULTS, it will be inherited by all configs # in SESSION_CONFIGS, except those that explicitly override it. # the session config can be accessed from methods in your apps as self.session.config, # e.g. self.session.config['participation_fee'] # prolific """ SESSION_CONFIG_DEFAULTS = dict( real_world_currency_per_point=0.00, participation_fee=7.50, doc="" ) """ # mTurk SESSION_CONFIG_DEFAULTS = dict( real_world_currency_per_point=0.00, participation_fee=10.00, doc="", mturk_hit_settings=dict( keywords='decision, gambling, multiplayer, social, psychology, choice', title='Multiplayer Bandit', description='Choose between 2 available gambling options, observe earned reward and choices of other players.', frame_height=500, template='global/mturk_template.html', minutes_allotted_per_assignment=60, expiration_hours=7 * 24, qualification_requirements=[ # Only US { 'QualificationTypeId': "00000000000000000071", 'Comparator': "EqualTo", 'LocaleValues': [{'Country': "US"}] }, # At least 200 HITs approved { 'QualificationTypeId': "00000000000000000040", 'Comparator': "GreaterThanOrEqualTo", 'IntegerValues': [200] }, # At least 95% of HITs approved { 'QualificationTypeId': "000000000000000000L0", 'Comparator': "GreaterThanOrEqualTo", 'IntegerValues': [95] } ] # grant_qualification_id='YOUR_QUALIFICATION_ID_HERE', # to prevent retakes ) ) PARTICIPANT_FIELDS = ['name'] SESSION_FIELDS = [] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = 'USD' USE_POINTS = True ADMIN_USERNAME = 'admin' # for security, best to set admin password in an environment variable ADMIN_PASSWORD = environ.get('OTREE_ADMIN_PASSWORD') DEMO_PAGE_INTRO_HTML = """ """ SECRET_KEY = '8142853762752'