From 2f518da5dbba80ca1d0b1ec6ea3c425dec3f1ba1 Mon Sep 17 00:00:00 2001 From: Pavel_Duron Date: Mon, 14 Nov 2022 00:23:03 +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 | 2 +- sqdb.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index e11f02c..ccfe172 100644 --- a/bot.py +++ b/bot.py @@ -86,7 +86,7 @@ async def ident(message: types.Message): await bot.send_message(message.chat.id, f'{message.from_user.full_name}, ваш писюн {size_change}\ теперь он равен {int_table.dick_size} см!') session.close() - + session.close() # int_table = user(user_id = message.from_user.id, user_fullname = message.from_user.full_name, dick_size = numb) #импортирую юзер из sqdb # session.add(int_table) diff --git a/sqdb.py b/sqdb.py index a564f59..f614f41 100644 --- a/sqdb.py +++ b/sqdb.py @@ -23,10 +23,10 @@ class user(Base): dick_size = (Column(Integer)) datetimes = (Column(DateTime)) +session.close() - -Base.metadata.create_all(engine) +#Base.metadata.create_all(engine) # int_table = user(user_id = 12345678, user_fullname = 'test', dick_size = 10) #импортирую юзер из sqdb # session.add(int_table)