fix session
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pavel_Duron 2022-12-04 16:23:05 +10:00
parent 89ccbf1810
commit 5b668f1a6d

4
bot.py
View File

@ -161,7 +161,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()
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\
@ -173,7 +173,7 @@ async def send_time(message: types.Message):
8. {delimiter.join(map(str, top_chat[7]))}\n\
9. {delimiter.join(map(str, top_chat[8]))}\n\
10. {delimiter.join(map(str, top_chat[9]))}\n')
session.close()
@dp.message_handler(commands=['start'])
async def start_func(message: types.Message):