From 4b1395b2c9387d7a5183f7b7b4e2b087ede632af Mon Sep 17 00:00:00 2001 From: LIghtJUNction Date: Fri, 6 Feb 2026 04:19:41 +0800 Subject: [PATCH] Update astrbot/dashboard/routes/route.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- astrbot/dashboard/routes/route.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/astrbot/dashboard/routes/route.py b/astrbot/dashboard/routes/route.py index 530a0807c..8a22e1fa5 100644 --- a/astrbot/dashboard/routes/route.py +++ b/astrbot/dashboard/routes/route.py @@ -59,4 +59,5 @@ class Response: return self def to_json(self): - return jsonify(asdict(self)) + # Return a plain dict so callers can safely wrap with jsonify() + return asdict(self)