From e710454d1870ee9d936a91acc12d4d8f2fefed35 Mon Sep 17 00:00:00 2001 From: Oscar Date: Thu, 11 Dec 2025 15:45:14 +0800 Subject: [PATCH] =?UTF-8?q?perf(command):=20=E4=BC=98=E5=8C=96=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E5=86=B2=E7=AA=81=E8=AE=A1=E6=95=B0=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/dashboard/routes/command.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/astrbot/dashboard/routes/command.py b/astrbot/dashboard/routes/command.py index 3a0c13fc6..5cb267169 100644 --- a/astrbot/dashboard/routes/command.py +++ b/astrbot/dashboard/routes/command.py @@ -27,11 +27,10 @@ class CommandRoute(Route): async def get_commands(self): commands = await list_commands() - conflicts = await list_command_conflicts() summary = { "total": len(commands), "disabled": len([cmd for cmd in commands if not cmd["enabled"]]), - "conflicts": len(conflicts), + "conflicts": len([cmd for cmd in commands if cmd.get("has_conflict")]), } return Response().ok({"items": commands, "summary": summary}).__dict__