From e6f775d2ed0d61caaddcf179fda77bce5067b9a7 Mon Sep 17 00:00:00 2001 From: Whispering Wind <151555003+ReturnFI@users.noreply.github.com> Date: Thu, 28 Aug 2025 00:53:43 +0330 Subject: [PATCH] fix(webpanel): relax conflict check in user viewmodel --- core/scripts/webpanel/routers/user/viewmodel.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/scripts/webpanel/routers/user/viewmodel.py b/core/scripts/webpanel/routers/user/viewmodel.py index eed9cee..0c3134d 100644 --- a/core/scripts/webpanel/routers/user/viewmodel.py +++ b/core/scripts/webpanel/routers/user/viewmodel.py @@ -24,8 +24,7 @@ class User(BaseModel): 'password', 'max_download_bytes', 'expiration_days', - 'blocked', - 'unlimited_user' + 'blocked' ] if not all(key in user_data for key in essential_keys): @@ -92,4 +91,4 @@ class User(BaseModel): elif traffic_bytes < 1024**3: return f'{traffic_bytes / 1024**2:.2f} MB' else: - return f'{traffic_bytes / 1024**3:.2f} GB' \ No newline at end of file + return f'{traffic_bytes / 1024**3:.2f} GB'