mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ec04af21d6 | |||
| 2aef281e8c | |||
| 2be62140ac |
@@ -125,6 +125,7 @@ async def request(url: str) -> tuple[bool, bool, dict[str, Any]]:
|
|||||||
except JSONDecodeError:
|
except JSONDecodeError:
|
||||||
await page.wait_for_timeout(1000)
|
await page.wait_for_timeout(1000)
|
||||||
else:
|
else:
|
||||||
|
await page.close()
|
||||||
return (True, data['success'], data)
|
return (True, data['success'], data)
|
||||||
if attempts >= 60:
|
if attempts >= 60:
|
||||||
break
|
break
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "nonebot-plugin-tetris-stats"
|
name = "nonebot-plugin-tetris-stats"
|
||||||
version = "0.3.0"
|
version = "0.3.1"
|
||||||
description = "一个基于nonebot2的用于查询TETRIS相关游戏玩家数据的插件"
|
description = "一个基于nonebot2的用于查询TETRIS相关游戏玩家数据的插件"
|
||||||
authors = ["scdhh <wallfjjd@gmail.com>"]
|
authors = ["scdhh <wallfjjd@gmail.com>"]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|||||||
Reference in New Issue
Block a user