From dec22bbc76b4ae83f8a8ee5c84c4ba3f3a4d1029 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 19 Oct 2025 10:29:15 +0800 Subject: [PATCH] bugfix --- sqlor/mysqlor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sqlor/mysqlor.py b/sqlor/mysqlor.py index 6bd060e..7a1473d 100755 --- a/sqlor/mysqlor.py +++ b/sqlor/mysqlor.py @@ -151,9 +151,9 @@ WHERE db: """ dbdesc = self.dbdesc - self.conn = await aiomysql.connect(**desc['kwargs]) + self.conn = await aiomysql.connect(**dbdesc) self.cur = await self.cursor() - aelf.dbname = desc['kwargs']['db'] + aelf.dbname = dbdesc.get('db') async def close(): await self.cursor.close()