-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
21 lines (18 loc) · 934 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import os
import datetime
from dotenv import load_dotenv
basedir = os.path.abspath(os.path.dirname(__file__))
load_dotenv(os.path.join(basedir, '.env'))
MAX_ANSWERS = 4
N_MODELS = 4
DATA_PATH = 'data/all_mp3_cut'
MIN_DATE = datetime.datetime(datetime.MINYEAR,1,1,0,0)
LOCK_TIME = datetime.timedelta(minutes=5) #Amount of time for which other users cannot access the same question.
BIAS_MOST_ANSWERS = 0.15 # Should be a value between 0 and 1. 1: No bias, 0: always choose most answered
FILL_QUESTIONS = False # Should be False most of the time, except when trying to fill as many questions as possible
CLOSE_WEBSITE = True # To close everything except info sheet and consent form
class Config(object):
SECRET_KEY = os.environ.get('SECRET_KEY') or 'lol_tro_maran'
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_TRACK_MODIFICATIONS = False