From 147f5c5096adf53118b017f969ac6f58f90d9886 Mon Sep 17 00:00:00 2001 From: Pavel_Duron Date: Sat, 12 Nov 2022 23:20:20 +1000 Subject: [PATCH] =?UTF-8?q?=D1=82=D0=B5=D1=81=D1=82=20=D1=8B=D0=B2=D0=BE?= =?UTF-8?q?=D0=B4=D0=B0=20=D0=B8=D0=BD=D1=84=D0=BE=D1=80=D0=BC=D0=B0=D1=86?= =?UTF-8?q?=D0=B8=D0=B8=20=D0=B8=D0=B7=20=D0=B1=D0=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 41dd112..73f3cd4 100644 --- a/bot.py +++ b/bot.py @@ -70,14 +70,14 @@ async def ident(message: types.Message): Session = sessionmaker(bind=engine) session = Session() Base = declarative_base() - int_table = user(user_id = message.from_user.id, user_fullname = message.from_user.full_name, dick_size = (numb)) #импортирую юзер из sqdb + int_table = user(user_id = message.from_user.id, user_fullname = message.from_user.full_name, dick_size = numb) #импортирую юзер из sqdb session.add(int_table) session.commit() #обновление # dick_update = session.query(user).filter_by(user.user_id = message.from_user.id).update({'dick_size': user.dick_size + numb}) # session.add(dick_update) # session.commit() - last_size = session.query(user).filter_by(user_id = message.from_user.id).select_from(dick_size).one() + last_size = session.query(user).filter_by(user_id = message.from_user.id).select_from(dick_size = '').one() await bot.send_message(message.chat.id, f'{message.from_user.full_name}, ваш писюн {size_change}\ Теперь он равен {last_size} пока еще хуй знает сколько сантиметров ')