Archived
回复文件结构
This commit is contained in:
5 files changed
+1
-19
No files matched your search
@@ -25,9 +25,7 @@ if conf.type == 'MySQL':
|
|||||||
else:
|
else:
|
||||||
from bin.db.db import SQLite as db
|
from bin.db.db import SQLite as db
|
||||||
|
|
||||||
app = Flask(__name__,
|
app = Flask(__name__, static_url_path='')
|
||||||
static_folder='bin/static',
|
|
||||||
template_folder='bin/templates')
|
|
||||||
app.config['JSON_SORT_KEYS'] = False # 设置JSON消息不根据字母顺序重新排序
|
app.config['JSON_SORT_KEYS'] = False # 设置JSON消息不根据字母顺序重新排序
|
||||||
app.config['JSON_AS_ASCII'] = False # 设置JSON消息显示中文
|
app.config['JSON_AS_ASCII'] = False # 设置JSON消息显示中文
|
||||||
|
|
||||||
|
|||||||
@@ -58,22 +58,6 @@ class Settings:
|
|||||||
"""
|
"""
|
||||||
return self.__database['type']
|
return self.__database['type']
|
||||||
|
|
||||||
@property
|
|
||||||
def path(self) -> str:
|
|
||||||
"""
|
|
||||||
数据库路径
|
|
||||||
:return:
|
|
||||||
"""
|
|
||||||
return self.__database['SQLite']['path']
|
|
||||||
|
|
||||||
@property
|
|
||||||
def name(self) -> str:
|
|
||||||
"""
|
|
||||||
数据库名称
|
|
||||||
:return:
|
|
||||||
"""
|
|
||||||
return self.__database['SQLite']['path'].split('/')[-1]
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def mysql_host(self) -> str:
|
def mysql_host(self) -> str:
|
||||||
"""
|
"""
|
||||||
|
|||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in New Issue
Block a user