This commit is contained in:
yumoqing 2025-10-19 10:29:15 +08:00
parent 212751bdfb
commit dec22bbc76

View File

@ -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()