修复了无法使用MySQL数据库的bug, 现已正式支持MySQL数据库

This commit is contained in:
MarkusJoe
2022-03-01 22:33:44 +08:00
parent e6a4b706ed
commit f997bb611e
3 files changed
+25 -22

No files matched your search

+9 -1
View File
@@ -6,4 +6,12 @@
# @File Name: __init__.py
__all__ = ['error', 'logger', 'packing_logs', 'view']
import os
from bin.utils.logger import logger
from bin.utils.settings import Settings
if __name__ != '__main__':
if Settings().type == 'MySQL' and not os.path.exists('./bin/db/origin.sql'):
logger.info('当前使用的数据库为MySQL请前往 https://themedatabase.vercel.app/source/sql 下载sql文件')
logger.info('并使用 source 命令来导入MySQL数据库')
logger.info('忽略此消息请在./bin/db内创建一个名为origin.sql的文件')