From 376605f554bd8bc20d46284de5f93ea5ffb46ec5 Mon Sep 17 00:00:00 2001 From: NotBigGhost Date: Sat, 18 Jul 2026 17:02:10 +0300 Subject: [PATCH] =?UTF-8?q?API:=20avatar=5Furl=20=D1=83=20=D1=83=D1=87?= =?UTF-8?q?=D0=B0=D1=81=D1=82=D0=BD=D0=B8=D0=BA=D0=BE=D0=B2=20=D0=BF=D0=B0?= =?UTF-8?q?=D1=80=D1=82=D0=B8=D0=B8=20(=D0=B4=D0=BB=D1=8F=20=D0=B1=D0=BB?= =?UTF-8?q?=D0=BE=D0=BA=D0=BE=D0=B2=20=D0=BD=D0=BE=D0=B2=D0=BE=D0=B3=D0=BE?= =?UTF-8?q?=20=D1=80=D0=B5=D0=B4=D0=B0=D0=BA=D1=82=D0=BE=D1=80=D0=B0=20?= =?UTF-8?q?=D0=BC=D0=B5=D1=81=D1=82)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- backend/app/routers/matches.py | 1 + backend/app/schemas/api.py | 1 + frontend/src/api/schema.d.ts | 2 ++ 3 files changed, 4 insertions(+) diff --git a/backend/app/routers/matches.py b/backend/app/routers/matches.py index 719efd6..ef4cb4d 100644 --- a/backend/app/routers/matches.py +++ b/backend/app/routers/matches.py @@ -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] ] diff --git a/backend/app/schemas/api.py b/backend/app/schemas/api.py index b8cc7eb..f5b8b86 100644 --- a/backend/app/schemas/api.py +++ b/backend/app/schemas/api.py @@ -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): diff --git a/frontend/src/api/schema.d.ts b/frontend/src/api/schema.d.ts index dbc5301..09f298d 100644 --- a/frontend/src/api/schema.d.ts +++ b/frontend/src/api/schema.d.ts @@ -1682,6 +1682,8 @@ export interface components { was_random: boolean; /** Comment */ comment?: string | null; + /** Avatar Url */ + avatar_url?: string | null; }; /** MatchRead */ MatchRead: {