修复bug

This commit is contained in:
MarkusJoe
2022-03-26 09:12:12 +08:00
parent c58ea1a093
commit 6c333929a9
2 files changed
+13 -12

No files matched your search

-12
View File
@@ -27,15 +27,3 @@ def create_app():
return app
def download():
res = requests.get('http://resource-base.herokuapp.com/download/data.db')
with open('./app/db/data.db', 'wb') as fp:
fp.write(res.content)
if __name__ != '__main__':
if not os.path.exists('./app/db/data.db'):
print('数据库文件未找到, 正在下载中')
download()
print('下载完成')