From ae1f7e258745d6f43c46b127c14f5694af576eef Mon Sep 17 00:00:00 2001 From: Artem Reznichenko Date: Mon, 4 Dec 2023 10:44:40 +0300 Subject: [PATCH] distinct --- bot/app/bot.py | 1 + 1 file changed, 1 insertion(+) 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(