Compare commits

...

8 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
4155d8eb42 🔖 1.4.14 2024-08-17 19:50:52 +08:00
4cc942d226 🐛 修 40l 无 hold 爆炸 2024-08-17 19:50:25 +08:00
996dd565d8 🔖 1.4.13 2024-08-17 18:43:11 +08:00
5b0660e45b 🐛 修第一赛季最后没有段位爆炸 2024-08-17 18:41:31 +08:00
4 changed files with 6 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ class Stats(BaseModel):
level_lines: int
level_lines_needed: int
inputs: int
holds: int
holds: int = 0
time: Time | None = None # ?: 不知道是之后都没有了还是还会有
score: int
zenlevel: int

View File

@@ -10,7 +10,7 @@ class PastInner(BaseModel):
season: str
username: str
country: str | None = None
placement: int
placement: int | None = None
gamesplayed: int
gameswon: int
glicko: float
@@ -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.12'
version = '1.4.16'
description = '一款基于 NoneBot2 的用于查询 Tetris 相关游戏数据的插件'
authors = ['scdhh <wallfjjd@gmail.com>']
readme = 'README.md'