From cfd06d77211321d794f05e9121aa8f006da61b9b Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 22 Nov 2022 15:12:16 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index 4ba8c360f..531e6aafd 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -901,7 +901,8 @@ def importDbExternal(): # print(mysql_cmd) os.system(mysql_cmd) - os.remove(import_sql) + if ext != 'sql': + os.remove(import_sql) return mw.returnJson(True, 'ok')