mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
✨ TETR.IO 适配 v2模板
This commit is contained in:
@@ -394,6 +394,7 @@ async def make_query_image_v2(player: Player) -> bytes:
|
|||||||
total=league.gamesplayed,
|
total=league.gamesplayed,
|
||||||
wins=league.gameswon,
|
wins=league.gameswon,
|
||||||
),
|
),
|
||||||
|
decaying=league.decaying,
|
||||||
)
|
)
|
||||||
if isinstance(league, RatedLeague)
|
if isinstance(league, RatedLeague)
|
||||||
else None,
|
else None,
|
||||||
|
|||||||
@@ -69,6 +69,8 @@ class TetraLeague(BaseModel):
|
|||||||
|
|
||||||
statistic: TetraLeagueStatistic
|
statistic: TetraLeagueStatistic
|
||||||
|
|
||||||
|
decaying: bool
|
||||||
|
|
||||||
|
|
||||||
class Sprint(BaseModel):
|
class Sprint(BaseModel):
|
||||||
time: str
|
time: str
|
||||||
|
|||||||
Reference in New Issue
Block a user