API: avatar_url у участников партии (для блоков нового редактора мест)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -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]
|
||||
]
|
||||
|
||||
@@ -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):
|
||||
|
||||
Vendored
+2
@@ -1682,6 +1682,8 @@ export interface components {
|
||||
was_random: boolean;
|
||||
/** Comment */
|
||||
comment?: string | null;
|
||||
/** Avatar Url */
|
||||
avatar_url?: string | null;
|
||||
};
|
||||
/** MatchRead */
|
||||
MatchRead: {
|
||||
|
||||
Reference in New Issue
Block a user