test dictт

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

11
bot.py
View File

@ -117,9 +117,14 @@ 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')
session.close_all()
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()
@dp.message_handler(commands=['start'])