From f1a147ead365159779ac8af5ff5e4c61e8c12ada Mon Sep 17 00:00:00 2001 From: Pavel_Duron Date: Fri, 2 Dec 2022 18:37:45 +1000 Subject: [PATCH] fix local top --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 8bb31ac..bb5c7a7 100644 --- a/bot.py +++ b/bot.py @@ -112,7 +112,7 @@ chat_id = message.chat.id) @dp.message_handler(commands=["topdick"]) async def send_topchat(message: types.Message): - top = session.query(user.user_fullname, user.dick_size).order_by(user.dick_size.desc()).filter(user.chat_id == user.chat_id).limit(10).all() + top = session.query(user.user_fullname, user.dick_size).order_by(user.dick_size.desc()).filter(user.chat_id == message.chat.id).limit(10).all() delimiter = ': ' await bot.send_message(message.chat.id, f'🏆Топ 10 бубылд чата🏆\n\n\