From 7cc1aceb82326965448cb0529171514110ac6341 Mon Sep 17 00:00:00 2001 From: MarkusJoe Date: Tue, 1 Mar 2022 20:59:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/__init__.py | 4 ++-- requirements.txt | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/__init__.py b/bin/__init__.py index 48ed1ba..e743e69 100644 --- a/bin/__init__.py +++ b/bin/__init__.py @@ -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() diff --git a/requirements.txt b/requirements.txt index e7e0405..7d06bf4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 \ No newline at end of file +pymysql +pyyaml \ No newline at end of file