Compare commits

..

2 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
17400bc852 Fix tetrio v2 template crash for users with PERCENTILEINVARIANT (rank_type=7) achievements
Co-authored-by: shoucandanghehe <51957264+shoucandanghehe@users.noreply.github.com>
2026-02-23 07:07:22 +00:00
copilot-swe-agent[bot]
9594278c07 Initial plan 2026-02-23 06:54:49 +00:00

View File

@@ -26,6 +26,7 @@ from ....utils.render.schemas.v2.tetrio.user.info import (
Zenith,
)
from ..api import Player
from ..api.schemas.summaries.achievements import RankType
from ..api.schemas.summaries.league import InvalidData, NeverPlayedData, NeverRatedData
from .tools import flow_to_history, handling_special_value
@@ -122,6 +123,7 @@ async def make_query_image_v2(player: Player) -> bytes:
total=i.total,
)
for i in achievements.data
if i.rank_type != RankType.PERCENTILEINVARIANT
],
playtime=play_time,
join_at=user_info.data.ts,