From 9fe5da8de987ed7c29b97fa4e744e6fb4565d6ab Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 6 Feb 2021 13:49:01 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index de4478872..bf9aacc34 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -1639,6 +1639,9 @@ def fullSync(version=''): if os.path.exists(status_file): c = mw.readFile(status_file) d = json.loads(c) + + if d['code'] == '6': + os.remove(status_file) return c return json.dumps({'code': 0, 'msg': '点击开始,开始导入!', 'progress': 0})