mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:59:25 +08:00
Update db.py
This commit is contained in:
+1
-3
@@ -201,9 +201,7 @@ class Sql():
|
||||
try:
|
||||
sql = "SELECT " + self.__OPT_FIELD + " FROM " + self.__DB_TABLE + \
|
||||
self.__OPT_WHERE + self.__OPT_GROUP + self.__OPT_ORDER + self.__OPT_LIMIT
|
||||
|
||||
debug = getPanelDir()+'/data/debug.pl'
|
||||
if os.path.exists(debug):
|
||||
if mw.isDebugMode():
|
||||
print(sql, self.__OPT_PARAM)
|
||||
result = self.__DB_CONN.execute(sql, self.__OPT_PARAM)
|
||||
data = result.fetchall()
|
||||
|
||||
Reference in New Issue
Block a user