Update __init__.py

This commit is contained in:
Mr Chen
2024-11-27 04:13:19 +08:00
parent e8d1e6e1eb
commit 50eb0137a4
+2 -3
View File
@@ -37,6 +37,8 @@ import core.mw as mw
import config
import utils.config as utils_config
import thisdb
# 初始化db
setup.init()
# from threading import Lock
# thread = None
@@ -67,9 +69,6 @@ app.config['PERMANENT_SESSION_LIFETIME'] = timedelta(days=31)
# app.config['SQLALCHEMY_DATABASE_URI'] = mw.getSqitePrefix()+config.SQLITE_PATH+"?timeout=20" # 使用 SQLite 数据库
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
# 初始化db
setup.init()
# BASIC AUTH
app.config['BASIC_AUTH_OPEN'] = False
try: