Compare commits

..

4 Commits

Author SHA1 Message Date
cbc96fc09e 🔖 1.4.11 2024-08-17 04:37:18 +08:00
8e10cfe0d0 🐛 修最佳段位为 z 爆炸 2024-08-17 04:31:14 +08:00
d192f0506d 🔖 1.4.10 2024-08-17 04:21:57 +08:00
44aed656b8 🐛 忘记 push schema 2024-08-17 04:21:33 +08:00
3 changed files with 57 additions and 2 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: Rank = 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

@@ -53,7 +53,7 @@ class TetraLeagueStatistic(BaseModel):
class TetraLeague(BaseModel):
rank: Rank
highest_rank: ValidRank
highest_rank: Rank
tr: Number

View File

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