From d139abb8079166e9a9d5d00e91f6224c3f8ef310 Mon Sep 17 00:00:00 2001 From: MingxuanGame Date: Tue, 19 Aug 2025 11:44:46 +0000 Subject: [PATCH] fix(user): complete `default_group` & `is_deleted` --- app/database/lazer_user.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/database/lazer_user.py b/app/database/lazer_user.py index d3747f7..f3523f7 100644 --- a/app/database/lazer_user.py +++ b/app/database/lazer_user.py @@ -249,6 +249,8 @@ class UserResp(UserBase): team: Team | None = None session_verified: bool = True daily_challenge_user_stats: DailyChallengeStatsResp | None = None + default_group: str = "" + is_deleted: bool = False # TODO # TODO: monthly_playcounts, unread_pm_count, rank_history, user_preferences @@ -272,6 +274,7 @@ class UserResp(UserBase): u = cls.model_validate(obj.model_dump()) u.id = obj.id + u.default_group = "bot" if u.is_bot else "default" u.country = Country( code=obj.country_code, name=COUNTRIES.get(obj.country_code, "Unknown") )