Update db.py

This commit is contained in:
dami
2025-08-21 14:38:50 +08:00
parent 8cdbe8a491
commit 72724c6014
+1 -3
View File
@@ -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()