From 84d083ac5cf59f590fe6b96b3068f4dddaae3108 Mon Sep 17 00:00:00 2001 From: Pavel_Duron Date: Wed, 23 Nov 2022 00:45:45 +1000 Subject: [PATCH] test topdick --- bot.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index ad79885..9ecad46 100644 --- a/bot.py +++ b/bot.py @@ -117,10 +117,20 @@ async def send_time(message: types.Message): session = Session() Base = declarative_base() - a = session.query(user.user_fullname, user.dick_size).order_by(user.dick_size.desc()).limit(10).all() - b = dict(a) + top = session.query(user.user_fullname, user.dick_size).order_by(user.dick_size.desc()).limit(10).all() + red = '\n'.join(map(str, top)) - await bot.send_essage(message.chat.id,f'{a}') + await bot.send_message(message.chat.id, f'{red}') +# {top[0]}\n\ +# {top[1]}\n\ +# {top[2]}\n\ +# {top[3]}\n\ +# {top[4]}\n\ +# {top[5]}\n\ +# {top[6]}\n\ +# {top[7]}\n\ +# {top[8]}\n\ +# {top[9]}') session.close_all()