forked from Pavel_Durov/python_bot
test dictт
This commit is contained in:
parent
960c9c97a7
commit
f942001b8d
9
bot.py
9
bot.py
@ -117,8 +117,13 @@ async def send_time(message: types.Message):
|
|||||||
session = Session()
|
session = Session()
|
||||||
Base = declarative_base()
|
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():
|
a = 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')
|
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()
|
session.close_all()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user