Archived
删除历史版本, 初始化仓库
This commit is contained in:
37 files changed
+1773
No files matched your search
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env python3
|
||||
# -- coding:utf-8 --
|
||||
# @Author: markushammered@gmail.com
|
||||
# @Development Tool: PyCharm
|
||||
# @Create Time: 2022/3/25
|
||||
# @File Name: __init__.py.py
|
||||
|
||||
|
||||
import os
|
||||
import sys
|
||||
import requests
|
||||
|
||||
|
||||
def download():
|
||||
res = requests.get('https://filebase.vercel.app/download/data.sqlite')
|
||||
with open('./app/db/data.sqlite', 'wb') as fp:
|
||||
fp.write(res.content)
|
||||
|
||||
|
||||
if not os.path.exists('./app/db/data.sqlite'):
|
||||
try:
|
||||
download()
|
||||
except requests.exceptions as error:
|
||||
sys.exit(1)
|
||||
|
||||
__all__ = [
|
||||
'db'
|
||||
]
|
||||
Reference in New Issue
Block a user