From c1a749aa1edb287e2bc5967aa454ec8b31148f19 Mon Sep 17 00:00:00 2001 From: Cinte Date: Sat, 18 Jan 2025 17:53:02 +0800 Subject: [PATCH] fix ghttps://github.com/Todysheep/nonebot_plugin_bottle/issues/87 --- nonebot_plugin_bottle/data_source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nonebot_plugin_bottle/data_source.py b/nonebot_plugin_bottle/data_source.py index 9f57168..04b4ce7 100644 --- a/nonebot_plugin_bottle/data_source.py +++ b/nonebot_plugin_bottle/data_source.py @@ -436,7 +436,7 @@ async def list_bottles( """ whereclause = [Bottle.user_id == user_id] if not include_del: - whereclause.append(Bottle.is_del == False, Bottle.approved == True) + whereclause += [Bottle.is_del == False, Bottle.approved == True] return ( await session.scalars( select(Bottle).where(*whereclause).order_by(Bottle.id)