|
@@ -17,14 +17,8 @@ class BaseConfig(object):
|
|
|
DBNAME = 'libra_bot'
|
|
|
|
|
|
SQLALCHEMY_DATABASE_URI = f"{DIALCT}+{DRITVER}://{USERNAME}:{PASSWORD}@{HOST}:{PORT}/{DBNAME}?charset=utf8"
|
|
|
- SQLALCHEMY_TRACK_MODIFICATIONS = True # Disable track modifications
|
|
|
+ SQLALCHEMY_TRACK_MODIFICATIONS = False # Disable track modifications
|
|
|
SQLALCHEMY_ECHO = False # Optional: Log SQL queries
|
|
|
- SQLALCHEMY_ENGINE_OPTIONS= {
|
|
|
- 'connect_args': {
|
|
|
- 'init_command': "SET time_zone = 'Asia/Shanghai'"
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
dictConfig({
|
|
|
"version": 1,
|
|
|
"disable_existing_loggers": False, # 不覆盖默认配置
|