This commit is contained in:
MarkusJoe
2022-03-01 20:59:02 +08:00
parent 3d50ea2d8b
commit 7cc1aceb82
2 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -50,7 +50,7 @@ class Check:
"""检查md5是否相同和下载数据库"""
def __init__(self):
self.db_name = conf.name
self.db_name = 'data.db'
self.assets_url = 'https://themedatabases.vercel.app/assets'
self.remote_md5 = 'https://themedatabases.vercel.app/md5'
self.session = requests.Session()
@@ -137,6 +137,6 @@ if __name__ != '__main__':
conf = Settings()
if not os.path.exists('./bin/log'):
os.mkdir('./bin/log')
if not os.path.exists(f'./bin/db/{conf.name}'):
if not os.path.exists(f'./bin/db/data.db'):
logger.error('没有检测到本地主题数据库即将开始下载')
Check().download()
+3 -3
View File
@@ -1,7 +1,7 @@
Flask~=0.12.2
flask~=0.12.2
requests~=2.27.1
gevent~=21.12.0
gunicorn~=20.1.0
colorlog~=6.6.0
PyYAML~=6.0
PyMySQL~=1.0.2
pymysql
pyyaml