from os import environ SESSION_CONFIGS = [ dict( name='all_tasks_random_L', app_sequence=['alloc_task', 'group', 'survey'], num_demo_participants=3, timer=6, testing=False, doc="""Cross 'random_assign' for random leader assignment. Edit the 'timer' parameter to change timer tasks allocation""", # use_browser_bots=True, random_assign=True, ), dict( name='all_tasks', app_sequence=['alloc_task', 'group', 'survey'], num_demo_participants=3, timer=6, testing=False, doc=""" Cross 'random_assign' for random leader assignment. Edit the 'timer' parameter to change timer tasks allocation""", # use_browser_bots=True, random_assign=False, ), dict( name='alloc_group', app_sequence=['group'], num_demo_participants=3, timer=1, testing=True, doc="""test confg. for group with pre_score randomly set. Cross 'random_assign' for random leader assignment. Edit the 'timer' parameter to change timer tasks allocation""", # use_browser_bots=True, random_assign=False, ), dict( name='alloc_Ind', app_sequence=['alloc_task'], num_demo_participants=3, timer=6, testing=False, doc="""Alloc_task:""", # use_browser_bots=True, random_assign=True, ), ] ROOMS = [ dict( name='lab', display_name='Experiment Lab', participant_label_file='_rooms/labels.txt', ), dict( name='lab2', display_name='Ind Lab Session', ), ] # 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'] SESSION_CONFIG_DEFAULTS = dict( real_world_currency_per_point=1.00, participation_fee=0.00, doc="" ) PARTICIPANT_FIELDS = ['P_label', 'task', 'pre_score1', 'pre_score2', 'pre_score3', 'score', 'g1_correct_n', 'g1_correct_a', 'group_m1_current_q_ID', 'group_m2_current_q_ID', 'group_m3_current_q_ID', 'Index_mod1', 'Index_mod2', 'Index_mod3', 'g1_correct_s', 'g2_correct_n', 'g2_correct_a', 'g2_correct_s', 'min_score', 'random', 'correct_s', 'correct_n', 'correct_a', 'correct_n_all', 'correct_a_all', 'correct_s_all','expiry', 'expiry2', 'expiry3', 'p_m1_page', 'p_m1_page2', 'L_assign', 'time_out', 'CID2', 'ID_label', 'intro2', 'intro3', 'm1_list', 'm2_list', 'm3_list', 'CID', 'is_lead', 'is_W1', 'is_W2', 'role_id', 'p_m2_page', 'p_m2_page2', 'p_m3_page', 'p_m3_page2', 'g1_last_click', 'g2_last_click', 'par_id', 'm1_current_q_ID', 'm2_current_q_ID', 'm3_current_q_ID', 'old', 'ran_code', 'like_leader', 'questions_mod1', 'questions_mod2', 'questions_mod3', 'm2_list', 'matrix', 'matrix2', 'EM', 'EM_2', 'timer', 'matrices', 'group_id', 'otree_group_id', 'FIRST','group_scores','prev_g1_c_p1','prev_g1_c_p2','prev_g1_c_l', 'qd3', 'qd2', 'qd1', 'rank_R1', 'rank_R2', 'rank_R3', 'rank_R4', 'rank_R5', 'player_rank_group', 'random_round_selection', 'worker_wait_module', 'M1done', 'M2done', 'M3done', 'current_round', 'round_diff', 'own_correct_n', 'own_correct_a', 'own_correct_s', 'own_correct_n_all', 'own_correct_a_all', 'own_correct_s_all', 'num_answered_n', 'num_answered_a', 'num_answered_s'] SESSION_FIELDS = ['expiry', 'g1_correct_n', 'g1_correct_a', 'g1_correct_s', 'g2_correct_n', 'g2_correct_a', 'sorted_group_ranks_R1', 'g2_correct_s', 'min_score', 'random', 'm1_current_q_ID', 'm2_current_q_ID', 'm3_current_q_ID', 'matrices','new_round','sorted_group_ranks_R2','global_ranking'] # ISO-639 code # for example: de, fr, ja, ko, zh-hans LANGUAGE_CODE = 'en' # e.g. EUR, GBP, CNY, JPY REAL_WORLD_CURRENCY_CODE = '%' USE_POINTS = False 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 = '2257433421322'