forked from Pavel_Durov/python_bot
fix session
This commit is contained in:
parent
5b668f1a6d
commit
0861e266c7
1
bot.py
1
bot.py
@ -162,6 +162,7 @@ async def send_time(message: types.Message):
|
||||
top_chat = session.query(user.user_fullname, user.dick_size).order_by(user.dick_size.desc()).limit(10).all()
|
||||
delimiter = ': '
|
||||
session.close()
|
||||
engine.dispose()
|
||||
await bot.send_message(message.chat.id, f'🏆Топ 10 пипис в мире🏆\n\n\
|
||||
1. {delimiter.join(map(str, top_chat[0]))}\n\
|
||||
2. {delimiter.join(map(str, top_chat[1]))}\n\
|
||||
|
Loading…
Reference in New Issue
Block a user