Update index.py

This commit is contained in:
Mr Chen
2023-12-22 04:53:05 +08:00
parent de36f41182
commit 589933dc33
+3
View File
@@ -844,6 +844,9 @@ def importDbExternal():
mw.execShell(cmd)
import_sql = import_dir + tmpFile
if file.find(".sql") > -1 and file.find(".sql.gz") == -1:
import_sql = import_dir + file
if import_sql == "":
return mw.returnJson(False, '未找SQL文件')