diff --git a/bot/app/bot.py b/bot/app/bot.py index 88a7989..4a83cf8 100644 --- a/bot/app/bot.py +++ b/bot/app/bot.py @@ -95,6 +95,7 @@ async def start(msg: Message): .join(Fund) .filter(Fund.owner_id == user.id, Fund.active == True) .options(joinedload(FundMember.fund)) + .distinct(FundMember.fund) .count() ) await bot.send_message(