Archived
修改下载数据库的判断条件
This commit is contained in:
1 file changed
+1
-1
@@ -16,7 +16,7 @@ def download():
|
||||
fp.write(res.content)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if __name__ != '__main__':
|
||||
if not os.path.exists('./app/db/data.db'):
|
||||
print('数据库文件未找到, 正在下载中')
|
||||
download()
|
||||
|
||||
Reference in New Issue
Block a user