Only add SQLALCHEMY_ENGINE_OPTIONS under production databases

mark-2.4.1
Kevin Chung 2020-05-05 19:39:36 -04:00
parent 4b54789c14
commit 2f6ee65f33
1 changed files with 4 additions and 3 deletions

View File

@ -246,9 +246,10 @@ class Config(object):
UPDATE_CHECK = not os.getenv("UPDATE_CHECK") # Defaults True UPDATE_CHECK = not os.getenv("UPDATE_CHECK") # Defaults True
APPLICATION_ROOT = os.getenv("APPLICATION_ROOT") or "/" APPLICATION_ROOT = os.getenv("APPLICATION_ROOT") or "/"
SERVER_SENT_EVENTS = not os.getenv("SERVER_SENT_EVENTS") # Defaults True SERVER_SENT_EVENTS = not os.getenv("SERVER_SENT_EVENTS") # Defaults True
SQLALCHEMY_ENGINE_OPTIONS = { if DATABASE_URL.startswith("sqlite") is False:
"max_overflow": int(os.getenv("SQLALCHEMY_MAX_OVERFLOW", 20)) SQLALCHEMY_ENGINE_OPTIONS = {
} "max_overflow": int(os.getenv("SQLALCHEMY_MAX_OVERFLOW", 20))
}
""" """
=== OAUTH === === OAUTH ===