fix config

This commit is contained in:
Cayo Puigdefabregas 2024-01-30 20:33:09 +01:00
parent 8b0d1f4b7d
commit 9100f315f9
1 changed files with 5 additions and 5 deletions

View File

@ -60,11 +60,11 @@ class DevicehubConfig(Config):
db=DB_DATABASE,
) # type: str
SQLALCHEMY_POOL_SIZE = config("SQLALCHEMY_POOL_SIZE", 10)
SQLALCHEMY_MAX_OVERFLOW = config("SQLALCHEMY_MAX_OVERFLOW", 20)
SQLALCHEMY_TRACK_MODIFICATIONS = config("SQLALCHEMY_TRACK_MODIFICATIONS", False)
SQLALCHEMY_POOL_TIMEOUT = config("SQLALCHEMY_POOL_TIMEOUT", 0)
SQLALCHEMY_POOL_RECYCLE = config("SQLALCHEMY_POOL_RECYCLE", 3600)
SQLALCHEMY_POOL_SIZE = int(config("SQLALCHEMY_POOL_SIZE", 10))
SQLALCHEMY_MAX_OVERFLOW = int(config("SQLALCHEMY_MAX_OVERFLOW", 20))
SQLALCHEMY_TRACK_MODIFICATIONS = bool(config("SQLALCHEMY_TRACK_MODIFICATIONS", False))
SQLALCHEMY_POOL_TIMEOUT = int(config("SQLALCHEMY_POOL_TIMEOUT", 0))
SQLALCHEMY_POOL_RECYCLE = int(config("SQLALCHEMY_POOL_RECYCLE", 3600))
SCHEMA = config('SCHEMA', 'dbtest')
HOST = config('HOST', 'localhost')