From fb95ea864dd20b1adffd5024fa8a8cf852b432c6 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 3 Feb 2021 23:00:17 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index 6caac3be4..5d6f2b2ca 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -117,11 +117,11 @@ def pSqliteDb(dbname='databases'): conn.execute(csql_list[index], ()) else: # 现有run - conn = mw.M(dbname).dbPos(getServerDir(), name) - csql = mw.readFile(getPluginDir() + '/conf/mysql.sql') - csql_list = csql.split(';') - for index in range(len(csql_list)): - conn.execute(csql_list[index], ()) + # conn = mw.M(dbname).dbPos(getServerDir(), name) + # csql = mw.readFile(getPluginDir() + '/conf/mysql.sql') + # csql_list = csql.split(';') + # for index in range(len(csql_list)): + # conn.execute(csql_list[index], ()) conn = mw.M(dbname).dbPos(getServerDir(), name) return conn