Compare commits

..

4 Commits

Author SHA1 Message Date
e53e164a52 🔖 1.4.16 2024-08-18 01:25:43 +08:00
2cd7d89c3e 截图前等待 networkidle
还是得等)
2024-08-18 01:19:03 +08:00
b8b6d5f6c8 🔖 1.4.15 2024-08-17 22:41:32 +08:00
7a44c0dca5 🐛 修 s1 没打的爆炸 2024-08-17 22:40:47 +08:00
3 changed files with 4 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ class PastInner(BaseModel):
class Past(BaseModel):
first: PastInner = Field(..., alias='1')
first: PastInner | None = Field(default=None, alias='1')
class BaseData(BaseModel):

View File

@@ -27,4 +27,5 @@ async def screenshot(url: str) -> bytes:
};
""")
await page.set_viewport_size(size)
return await page.locator('id=content').screenshot(timeout=5000, type='png')
await page.wait_for_load_state('networkidle')
return await page.locator('id=content').screenshot(animations='disabled', timeout=5000, type='png')

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = 'nonebot-plugin-tetris-stats'
version = '1.4.14'
version = '1.4.16'
description = '一款基于 NoneBot2 的用于查询 Tetris 相关游戏数据的插件'
authors = ['scdhh <wallfjjd@gmail.com>']
readme = 'README.md'