格式化 rating 新增千分位分隔符

This commit is contained in:
2024-05-13 04:19:27 +08:00
parent abc1038082
commit b3015aaa91
2 changed files with 2 additions and 2 deletions

View File

@@ -320,7 +320,7 @@ class Processor(ProcessorMeta):
bio=user_info.data.user.bio, bio=user_info.data.user.bio,
), ),
ranking=TETRIOInfo.Ranking( ranking=TETRIOInfo.Ranking(
rating=round(league.glicko, 2), rating=f'{round(league.glicko, 2):,}',
rd=round(league.rd, 2), rd=round(league.rd, 2),
), ),
tetra_league=TETRIOInfo.TetraLeague( tetra_league=TETRIOInfo.TetraLeague(

View File

@@ -44,7 +44,7 @@ class TETRIOInfo(BaseModel):
bio: str | None bio: str | None
class Ranking(BaseModel): class Ranking(BaseModel):
rating: Number rating: str
rd: Number rd: Number
class TetraLeague(BaseModel): class TetraLeague(BaseModel):