Compare commits

...

2 Commits

Author SHA1 Message Date
d192f0506d 🔖 1.4.10 2024-08-17 04:21:57 +08:00
44aed656b8 🐛 忘记 push schema 2024-08-17 04:21:33 +08:00
2 changed files with 56 additions and 1 deletions

View File

@@ -0,0 +1,55 @@
from pydantic import BaseModel, Field
from ...typing import Rank, S1Rank, S1ValidRank, ValidRank
from ..base import SuccessModel
class PastInner(BaseModel):
season: str
username: str
country: str
placement: int
gamesplayed: int
gameswon: int
glicko: float
gxe: float
tr: float
rd: float
rank: S1Rank
bestrank: S1ValidRank
ranked: bool
apm: float
pps: float
vs: float
class Past(BaseModel):
first: PastInner = Field(..., alias='1')
class Data(BaseModel):
gamesplayed: int
gameswon: int
glicko: float
rd: float
gxe: float
tr: float
rank: Rank
bestrank: ValidRank = Field('z')
apm: float
pps: float
vs: float
decaying: bool
standing: int
standing_local: int
prev_rank: ValidRank | None = None
prev_at: int
next_rank: ValidRank | None = None
next_at: int
percentile: float
percentile_rank: Rank
past: Past
class LeagueSuccessModel(SuccessModel):
data: Data

View File

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