From d122daca872c2406e933ca3ecb87218453aa232b Mon Sep 17 00:00:00 2001 From: takatost Date: Fri, 15 Mar 2024 21:56:17 +0800 Subject: [PATCH] fix conversation filter --- api/controllers/console/app/conversation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/controllers/console/app/conversation.py b/api/controllers/console/app/conversation.py index 11dece3a9e58e5..fe88df151b0066 100644 --- a/api/controllers/console/app/conversation.py +++ b/api/controllers/console/app/conversation.py @@ -147,7 +147,7 @@ def get(self, app_model): parser.add_argument('limit', type=int_range(1, 100), required=False, default=20, location='args') args = parser.parse_args() - query = db.select(Conversation).where(Conversation.app_id == app_model.id, Conversation.mode == 'chat') + query = db.select(Conversation).where(Conversation.app_id == app_model.id) if args['keyword']: query = query.join(