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

This commit is contained in:
Pavel_Duron 2022-12-03 16:45:15 +10:00
parent 103f6222fa
commit 3dd2b32086

4
bot.py
View File

@ -116,7 +116,7 @@ async def send_topchat(message: types.Message):
chats = message.chat.id chats = message.chat.id
changechat_id.chat_id = chats changechat_id.chat_id = chats
session.commit() session.commit()
session.close()
top = session.query(user.user_fullname, user.dick_size).order_by(user.dick_size.desc()).filter(user.chat_id == chats).limit(10).all() top = session.query(user.user_fullname, user.dick_size).order_by(user.dick_size.desc()).filter(user.chat_id == chats).limit(10).all()
delimiter = ': ' delimiter = ': '
@ -151,7 +151,7 @@ async def send_topchat(message: types.Message):
🌶 {delimiter.join(map(str, top[7]))}\n\ 🌶 {delimiter.join(map(str, top[7]))}\n\
👌 {delimiter.join(map(str, top[8]))}\n\ 👌 {delimiter.join(map(str, top[8]))}\n\
💩 {delimiter.join(map(str, top[9]))}\n') 💩 {delimiter.join(map(str, top[9]))}\n')
session.close_all() session.close()