mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
修复关闭数据库时错误使用await的错误
This commit is contained in:
@@ -20,7 +20,7 @@ async def _():
|
|||||||
@driver.on_shutdown
|
@driver.on_shutdown
|
||||||
async def _():
|
async def _():
|
||||||
if isinstance(_DB, Connection):
|
if isinstance(_DB, Connection):
|
||||||
await _DB.close()
|
_DB.close()
|
||||||
|
|
||||||
|
|
||||||
async def init_db() -> Connection:
|
async def init_db() -> Connection:
|
||||||
|
|||||||
Reference in New Issue
Block a user