From 72b16e9540221fc137fef07b4ae7f97159adfca3 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 22 Dec 2023 04:59:19 +0800 Subject: [PATCH] update --- plugins/mariadb/index.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/mariadb/index.py b/plugins/mariadb/index.py index 570e4eda9..ec907317a 100755 --- a/plugins/mariadb/index.py +++ b/plugins/mariadb/index.py @@ -859,7 +859,9 @@ 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')