From d5b0ef34c579552662f9280f4a6b95f4d0c49993 Mon Sep 17 00:00:00 2001 From: shoucandanghehe Date: Mon, 10 Jun 2024 00:25:21 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E6=9B=B4=E6=96=B0=20v2=20=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../utils/render/schemas/tetrio_info_v2.py | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/nonebot_plugin_tetris_stats/utils/render/schemas/tetrio_info_v2.py b/nonebot_plugin_tetris_stats/utils/render/schemas/tetrio_info_v2.py index 4f7adc6..a9a3af2 100644 --- a/nonebot_plugin_tetris_stats/utils/render/schemas/tetrio_info_v2.py +++ b/nonebot_plugin_tetris_stats/utils/render/schemas/tetrio_info_v2.py @@ -26,11 +26,16 @@ class User(BaseModel): badges: list[str] xp: Number - playtime: str + playtime: str | None join_at: datetime | None class Statistic(BaseModel): + total: int | None + wins: int | None + + +class TetraLeagueStatistic(BaseModel): total: int wins: int @@ -44,18 +49,18 @@ class TetraLeague(BaseModel): glicko: Number rd: Number - global_rank: int - country_rank: int + global_rank: int | None + country_rank: int | None pps: Number apm: Number - adpm: Number + apl: Number - vs: Number - adpl: Number + vs: Number | None + adpl: Number | None - statistic: Statistic + statistic: TetraLeagueStatistic class Sprint(BaseModel):