From 3eea66a6f55f45f6cc500c4b9f0866ed26eaf0a6 Mon Sep 17 00:00:00 2001 From: Whispering Wind <151555003+ReturnFI@users.noreply.github.com> Date: Sat, 12 Apr 2025 11:38:07 +0330 Subject: [PATCH] fix: Allow null values for upload and download bytes in user info --- core/scripts/webpanel/routers/api/v1/schema/user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/scripts/webpanel/routers/api/v1/schema/user.py b/core/scripts/webpanel/routers/api/v1/schema/user.py index 9afe538..b35ab03 100644 --- a/core/scripts/webpanel/routers/api/v1/schema/user.py +++ b/core/scripts/webpanel/routers/api/v1/schema/user.py @@ -13,8 +13,8 @@ class UserInfoResponse(BaseModel): account_creation_date: str blocked: bool status: str - upload_bytes: int - download_bytes: int + upload_bytes: int | None = None + download_bytes: int | None = None class UserListResponse(RootModel): # type: ignore