API: avatar_url у участников партии (для блоков нового редактора мест)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-18 17:02:10 +03:00
co-authored by Claude Fable 5
parent 4b7d8678ce
commit 376605f554
3 changed files with 4 additions and 0 deletions
+1
View File
@@ -56,6 +56,7 @@ def build_match_read(session: Session, match: Match, *, can_modify: bool = False
eliminated=p.eliminated,
was_random=p.was_random,
comment=p.comment,
avatar_url=user_service.avatar_url_for(u.id, u.avatar_path, u.updated_at), # type: ignore[arg-type]
)
for p, u, f in match_service.participants_detail(session, match.id) # type: ignore[arg-type]
]
+1
View File
@@ -254,6 +254,7 @@ class MatchParticipantRead(BaseModel):
eliminated: bool = False
was_random: bool
comment: str | None = None
avatar_url: str | None = None
class AttachmentRead(BaseModel):
+2
View File
@@ -1682,6 +1682,8 @@ export interface components {
was_random: boolean;
/** Comment */
comment?: string | null;
/** Avatar Url */
avatar_url?: string | null;
};
/** MatchRead */
MatchRead: {