mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
✨ 格式化 rating 新增千分位分隔符
This commit is contained in:
@@ -320,7 +320,7 @@ class Processor(ProcessorMeta):
|
||||
bio=user_info.data.user.bio,
|
||||
),
|
||||
ranking=TETRIOInfo.Ranking(
|
||||
rating=round(league.glicko, 2),
|
||||
rating=f'{round(league.glicko, 2):,}',
|
||||
rd=round(league.rd, 2),
|
||||
),
|
||||
tetra_league=TETRIOInfo.TetraLeague(
|
||||
|
||||
@@ -44,7 +44,7 @@ class TETRIOInfo(BaseModel):
|
||||
bio: str | None
|
||||
|
||||
class Ranking(BaseModel):
|
||||
rating: Number
|
||||
rating: str
|
||||
rd: Number
|
||||
|
||||
class TetraLeague(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user