TETR.IO 适配 v2模板

This commit is contained in:
2024-06-10 10:56:56 +08:00
parent ce94aee0f4
commit 504579710e
2 changed files with 3 additions and 0 deletions

View File

@@ -394,6 +394,7 @@ async def make_query_image_v2(player: Player) -> bytes:
total=league.gamesplayed,
wins=league.gameswon,
),
decaying=league.decaying,
)
if isinstance(league, RatedLeague)
else None,

View File

@@ -69,6 +69,8 @@ class TetraLeague(BaseModel):
statistic: TetraLeagueStatistic
decaying: bool
class Sprint(BaseModel):
time: str