Skip to content

Commit

Permalink
fix ghttps://github.com//issues/87
Browse files Browse the repository at this point in the history
  • Loading branch information
LambdaYH committed Jan 18, 2025
1 parent ae791bf commit c1a749a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nonebot_plugin_bottle/data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c1a749a

Please sign in to comment.