test dictт

This commit is contained in:
Pavel_Duron 2022-11-23 00:20:08 +10:00
parent 960c9c97a7
commit f942001b8d

9
bot.py
View File

@ -117,8 +117,13 @@ async def send_time(message: types.Message):
session = Session()
Base = declarative_base()
for user_fullname, dick_size in session.query(user.user_fullname, user.dick_size).order_by(user.dick_size.desc()).limit(10).all():
await bot.send_message(message.chat.id, f'{user_fullname} {dick_size}\n')
a = session.query(user.user_fullname, user.dick_size).order_by(user.dick_size.desc()).limit(10).all()
b = dict(a)
for key in b:
top = f"{key}: {str(b[key]).replace('[', '').replace(']', '')}"
await bot.send_message(message.chat.id, f'{top}')
session.close_all()