From 3613bf1ecbf4a68c41063679700fe3b95df1b11b Mon Sep 17 00:00:00 2001 From: Jeffrey Hu Date: Mon, 23 Sep 2024 03:54:13 +0800 Subject: [PATCH] filter feedback 0 for navigate feedback --- backend/chainlit/data/sql_alchemy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/chainlit/data/sql_alchemy.py b/backend/chainlit/data/sql_alchemy.py index 0470a2e51b..ed313aacfb 100644 --- a/backend/chainlit/data/sql_alchemy.py +++ b/backend/chainlit/data/sql_alchemy.py @@ -286,7 +286,7 @@ async def list_threads( ) search_keyword = filters.search.lower() if filters.search else None - feedback_value = int(filters.feedback) if filters.feedback else None + feedback_value = int(filters.feedback) if filters.feedback is not None else None filtered_threads = [] for thread in all_user_threads: