From a1e900f5c9cf5f5ae6bd86e4d32b3be104124429 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 14 May 2024 19:25:18 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index 0d8510519..6d05f6949 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -3104,11 +3104,12 @@ def doFullSyncUser(version=''): print(dump_sql_data) mw.execShell(dump_sql_data) - # 重置 - db.execute('reset master') + writeDbSyncStatus({'code': 3, 'msg': '正在到本地导入数据中...', 'progress': 40}) if os.path.exists(bak_file): + # 重置 + db.execute('reset master') pwd = pSqliteDb('config').where('id=?', (1,)).getField('mysql_root') sock = getSocketFile()