适配 v2 模板

This commit is contained in:
2024-06-07 21:18:12 +08:00
parent c2dd9c5d86
commit 21bee29146
7 changed files with 100 additions and 10 deletions

View File

@@ -229,7 +229,7 @@ async def make_query_image(
blitz_value = f'{blitz.endcontext.score:,}' if blitz is not None else 'N/A'
async with HostPage(
await render(
'tetrio/info',
'v1/tetrio/info',
Info(
user=TemplateUser(
avatar=f'https://tetr.io/user-content/avatars/{user_info.data.user.id}.jpg?rv={user_info.data.user.avatar_revision}'