import os
from os import environ

os.environ['OTREE_PRODUCTION']="1"

SESSION_CONFIGS = [
dict(
        name='broadgoal_assigned',
        display_name='broadgoal_assigned',
        num_demo_participants=3,
        app_sequence=['broadgoal_assigned'],
        participation_fee=2.50,
        payByTable=0.20,
        seedPractice="test",
        seedTask="banana",
        seedTask1="apple",
        seedTask2="orange",
        seedTask3="mango",
        seedTask4="pineapple",
        seedTask5="kiwi",
        seedTask6="blueberry",
        seedTask7="peach",
        seedTask8="cherry",
        rows=6,
        columns=6,
        minValue=0,
        maxValue=3,
        timeGlobalPractice=180000,
        timeRestPractice=60000,
        timeGlobal=2400000,
        timeRest=120000,
        timeGlobal1=300000,
        timeRest1=120000,
        timePracticeFeedback=30000,
        timePreTask=5000,
        timeTaskFeedback=120000,
        colorOK="#19fc04",
        colorNotOK="red",

        doc="""
    Edit the seedTrial parameter to change the random number in trial table.
    </br>Edit seedPractice to change the seed of init to randomize tables in practice.
    </br>Edit seedTask to change the seed of init to randomize tables.
    </br>Edit the rows parameter to change number of rows in tables;
    </br>Edit the columns parameter to change number of columns in the table;
    </br>Edit the minValue parameter to change the minimum value in each cell of tables;
    </br>Edit the maxValue parameter to change the maximum value in each cell of tables;
    </br>Edit the timeGlobalPractice parameter to change time total to do practice and rests in miliseconds;
    </br>Edit the timeRestPractice parameter to change time total to do rests in practice in miliseconds;
    </br>Edit the timeGlobal parameter to change time total to do tasks and rests in miliseconds;
    </br>Edit the timeRest parameter to change time total to do rests in miliseconds;
    </br>Edit the colorOK parameter to change the color when participant result is correct each cell of tables;
    </br>Edit the colorNotOK parameter to change the color when participant result is correct each cell of tables;
    """
    ),



dict(
        name='narrowgoal_assigned',
        display_name='narrowgoal_assigned',
        num_demo_participants=3,
        app_sequence=['narrowgoal_assigned'],
        participation_fee=2.50,
        payByTable=0.20,
        seedPractice="test",
        seedTask="banana",
        seedTask1="apple",
        seedTask2="orange",
        seedTask3="mango",
        seedTask4="pineapple",
        seedTask5="kiwi",
        seedTask6="blueberry",
        seedTask7="peach",
        seedTask8="cherry",
        rows=6,
        columns=6,
        minValue=0,
        maxValue=3,
        timeGlobalPractice=180000,
        timeRestPractice=60000,
        timeGlobal=2400000,
        timeRest=120000,
        timeGlobal1=300000,
        timeRest1=120000,
        timePracticeFeedback=30000,
        timePreTask=5000,
        timeTaskFeedback=120000,
        colorOK="#19fc04",
        colorNotOK="red",

        doc="""
    Edit the seedTrial parameter to change the random number in trial table.
    </br>Edit seedPractice to change the seed of init to randomize tables in practice.
    </br>Edit seedTask to change the seed of init to randomize tables.
    </br>Edit the rows parameter to change number of rows in tables;
    </br>Edit the columns parameter to change number of columns in the table;
    </br>Edit the minValue parameter to change the minimum value in each cell of tables;
    </br>Edit the maxValue parameter to change the maximum value in each cell of tables;
    </br>Edit the timeGlobalPractice parameter to change time total to do practice and rests in miliseconds;
    </br>Edit the timeRestPractice parameter to change time total to do rests in practice in miliseconds;
    </br>Edit the timeGlobal parameter to change time total to do tasks and rests in miliseconds;
    </br>Edit the timeRest parameter to change time total to do rests in miliseconds;
    </br>Edit the colorOK parameter to change the color when participant result is correct each cell of tables;
    </br>Edit the colorNotOK parameter to change the color when participant result is correct each cell of tables;
    """
    ),
    dict(
        name='baseline',
        app_sequence=['baseline'],
        num_demo_participants=8,
    ),
    dict(
        name='exogenous',
        app_sequence=['exogenous'],
        num_demo_participants=8,
    ),
    dict(
        name='responsibility',
        app_sequence=['responsibility'],
        num_demo_participants=8,
    ),
    dict(
        name='individual',
        app_sequence=['individual'],
        num_demo_participants=8,
    ),




]


ROOMS = [
    dict(
        name='BEEL',
        display_name='BEEL',
        participant_label_file='_rooms/BEEL.txt',
        use_secure_urls=True
    ),

]


# 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 = []
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 = 'GBP'
USE_POINTS = False

ADMIN_USERNAME = 'admin'
# for security, best to set admin password in an environment variable
ADMIN_PASSWORD = environ.get('OTREE_ADMIN_PASSWORD')

if environ.get('OTREE_PRODUCTION') not in {None, '', '0'}:
    DEBUG = False
else:
    DEBUG = True


DEMO_PAGE_INTRO_HTML = """ """

SECRET_KEY = '3948980268016'