add close_all_sesions
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pavel_Duron 2022-12-05 19:38:38 +10:00
parent 0391206ee6
commit 8682555bcb

View File

@ -63,6 +63,7 @@ async def send_topchat(message: types.Message):
chats = message.chat.id
if changechat_id.chat_id != chats:
changechat_id.chat_id = chats
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()
session.close()