From 75c8d73dbe65cac02c4132b87402396833f05625 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 17 Jul 2025 13:56:54 +0800 Subject: [PATCH] perf: Workspace search api --- backend/apps/system/api/workspace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/system/api/workspace.py b/backend/apps/system/api/workspace.py index 38444a59..6c285135 100644 --- a/backend/apps/system/api/workspace.py +++ b/backend/apps/system/api/workspace.py @@ -62,7 +62,7 @@ async def option_user( if keyword: stmt = stmt.where( or_( - UserModel.account == int(keyword), + UserModel.account == keyword, UserModel.name == keyword, ) )