From 5c516dc2a177c84defee23edae292ce11c4dd8e9 Mon Sep 17 00:00:00 2001 From: Rock Chin Date: Tue, 13 Dec 2022 00:06:19 +0800 Subject: [PATCH] =?UTF-8?q?debug:=20=E5=85=88=E8=BE=93=E5=87=BA=E5=86=8D?= =?UTF-8?q?=E6=89=A7=E8=A1=8CSQL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/database/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/database/manager.py b/pkg/database/manager.py index fa0ea46f..9b58cdbd 100644 --- a/pkg/database/manager.py +++ b/pkg/database/manager.py @@ -30,8 +30,8 @@ class DatabaseManager: self.cursor = self.conn.cursor() def execute(self, sql: str) -> Cursor: - c = self.cursor.execute(sql) logging.debug('SQL: {}'.format(sql)) + c = self.cursor.execute(sql) self.conn.commit() return c