Compare commits

...

3 Commits
0.3.0 ... 0.3.1

3 changed files with 3 additions and 2 deletions

View File

@@ -125,6 +125,7 @@ async def request(url: str) -> tuple[bool, bool, dict[str, Any]]:
except JSONDecodeError:
await page.wait_for_timeout(1000)
else:
await page.close()
return (True, data['success'], data)
if attempts >= 60:
break

View File

@@ -20,7 +20,7 @@ async def _():
@driver.on_shutdown
async def _():
if isinstance(_DB, Connection):
await _DB.close()
_DB.close()
async def init_db() -> Connection:

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "nonebot-plugin-tetris-stats"
version = "0.3.0"
version = "0.3.1"
description = "一个基于nonebot2的用于查询TETRIS相关游戏玩家数据的插件"
authors = ["scdhh <wallfjjd@gmail.com>"]
readme = "README.md"