From 420b1da340b9aed9a5a440489caea1a3d51fb450 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Fri, 3 Nov 2023 23:18:11 +0800 Subject: [PATCH] :bug: Fix bbs FullUser --- simnet/models/lab/record.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/simnet/models/lab/record.py b/simnet/models/lab/record.py index 4a554e2..59ca692 100644 --- a/simnet/models/lab/record.py +++ b/simnet/models/lab/record.py @@ -131,6 +131,7 @@ class PartialUser(APIModel): nickname (str): The user's nickname. introduction (str): The user's introduction. avatar_id (int): The user's avatar ID. + avatar_url (str): The user's avatar URL. gender (Gender): The user's gender. icon (str): The user's avatar URL. """ @@ -138,7 +139,8 @@ class PartialUser(APIModel): accident_id: int = Field(alias="uid") nickname: str introduction: str = Field(alias="introduce") - avatar_id: int = Field(alias="avatar") + avatar_id: Optional[str] = Field(alias="avatar") + avatar_url: Optional[str] = "" gender: Gender icon: str = Field(alias="avatar_url")