From b89d3f663c2ada47e826842c0ada74a6d6db9a18 Mon Sep 17 00:00:00 2001 From: Dt8333 <25431943+Dt8333@users.noreply.github.com> Date: Sat, 22 Nov 2025 18:37:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(core.db):=20=E4=BF=AE=E5=A4=8D=E5=8D=87?= =?UTF-8?q?=E7=BA=A7=E5=90=8Ewebchat=E6=9C=AA=E6=AD=A3=E7=A1=AE=E8=BF=81?= =?UTF-8?q?=E7=A7=BB=E7=9A=84=E9=97=AE=E9=A2=98=20(#3745)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 不是所有人都叫Astrbot #3722 --- astrbot/core/db/migration/migra_webchat_session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrbot/core/db/migration/migra_webchat_session.py b/astrbot/core/db/migration/migra_webchat_session.py index 6cb483464..26a9ebd88 100644 --- a/astrbot/core/db/migration/migra_webchat_session.py +++ b/astrbot/core/db/migration/migra_webchat_session.py @@ -43,7 +43,7 @@ async def migrate_webchat_session(db_helper: BaseDatabase): func.max(PlatformMessageHistory.updated_at).label("latest"), ) .where(col(PlatformMessageHistory.platform_id) == "webchat") - .where(col(PlatformMessageHistory.sender_id) == "astrbot") + .where(col(PlatformMessageHistory.sender_id) != "bot") .group_by(col(PlatformMessageHistory.user_id)) )