From 1f0be6557b913fc3a04272f3d6752b008e51a19e Mon Sep 17 00:00:00 2001 From: Pavel_Duron Date: Mon, 14 Nov 2022 00:03:09 +1000 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D1=80=D0=B5=D0=B3=20=D0=B2=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 473e55b..e11f02c 100644 --- a/bot.py +++ b/bot.py @@ -73,13 +73,14 @@ async def ident(message: types.Message): if session.query(user).filter(user.user_id == message.from_user.id).first(): a = session.query(user).filter(user.user_id == message.from_user.id).first() # запрос на поиск в таблице a.dick_size = (a.dick_size + numb) + a.datetimes = datetime.datetime.now() session.commit() #обновляет запись await bot.send_message(message.chat.id, f'{message.from_user.full_name}, ваш писюн {size_change}\ теперь он равен {a.dick_size} см! ') session.close() else: - int_table = user(user_id = message.from_user.id, user_fullname = message.from_user.full_name, dick_size = numb) + int_table = user(user_id = message.from_user.id, user_fullname = message.from_user.full_name, dick_size = numb, datetimes = datetime.datetime.now()) session.add(int_table) session.commit() await bot.send_message(message.chat.id, f'{message.from_user.full_name}, ваш писюн {size_change}\