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