diff --git a/bot.py b/bot.py index 0bdf909..b926683 100644 --- a/bot.py +++ b/bot.py @@ -116,7 +116,7 @@ async def send_topchat(message: types.Message): chats = message.chat.id 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() delimiter = ': ' @@ -151,7 +151,7 @@ async def send_topchat(message: types.Message): 🌶 {delimiter.join(map(str, top[7]))}\n\ 👌 {delimiter.join(map(str, top[8]))}\n\ 💩 {delimiter.join(map(str, top[9]))}\n') - session.close_all() + session.close()