回复文件结构

This commit is contained in:
MarkusJoe
2022-03-01 20:51:50 +08:00
parent 2810ef289a
commit b885c2b9b2
5 files changed
+1 -19

No files matched your search

+1 -3
View File
@@ -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消息显示中文
-16
View File
@@ -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.