From e32c1dc991537394f8a0ab89bb6fb4a17ef2361d Mon Sep 17 00:00:00 2001 From: Pavel_Duron Date: Fri, 11 Nov 2022 18:18:16 +1000 Subject: [PATCH] =?UTF-8?q?=D0=BD=D0=B0=D1=83=D1=87=D0=B8=D0=BB=D1=81?= =?UTF-8?q?=D1=8F=20=D0=B7=D0=B0=D0=BF=D0=B8=D1=81=D1=8B=D0=B2=D0=B0=D1=82?= =?UTF-8?q?=D1=8C=20id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/launch.json | 16 ++++++++++++++++ __pycache__/bot.cpython-310.pyc | Bin 2748 -> 2886 bytes __pycache__/sqdb.cpython-310.pyc | Bin 1135 -> 935 bytes bot.py | 23 ++++++++++++++++++----- dick3.db | Bin 8192 -> 8192 bytes sqdb.py | 14 +++++++------- 6 files changed, 41 insertions(+), 12 deletions(-) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..dc1dba1 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,16 @@ +{ + // Используйте IntelliSense, чтобы узнать о возможных атрибутах. + // Наведите указатель мыши, чтобы просмотреть описания существующих атрибутов. + // Для получения дополнительной информации посетите: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Python: текущий файл", + "type": "python", + "request": "launch", + "program": "${file}", + "console": "integratedTerminal", + "justMyCode": true + } + ] +} \ No newline at end of file diff --git a/__pycache__/bot.cpython-310.pyc b/__pycache__/bot.cpython-310.pyc index 7e1a5c4b61a685495cc060ff65616bad66a6ff0a..b40b174c57d6a6980741ff3c9ec8c6244ac61ee6 100644 GIT binary patch delta 1290 zcmZuw&2QX96rUN}ySB5=$7Vm0G-;L=1g2F<1LcGQsoIJP2@c5t?Zxu$%r4&gV>_M| zN>tcX^tuw2Z&a0vxX=UYp@&?0tJMF1%bfTxkSbO1W;P+!3QO%*}=*M!K9 z4xGY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ache__/sqdb.cpython-310.pyc b/__pycache__/sqdb.cpython-310.pyc index e4a88cba99aa7b3c170d54f645973e1b6b18f210..bcbb2809cb80f81b183b92a2b54ee072f9b5e30c 100644 GIT binary patch delta 372 zcmZusyGq1B6rGu5lei|!qFcCPz&5zph+rXGsEy4wYb8R6nQk`1MMaMgD)LNU2sM+L$;q5VbQW3QYN53(3$PN-!AZ+Jm(^e1ij6S> z95l#cv12lA1dsVtg-B-62->A}gonIayA=%deU@bDt;iquOO-3X+ZM$_76RP)s!wej n)jmn^t^v|6>EB-OI4^mfi77>!-awcTAG@LpZL delta 610 zcmY*WO-ma=7@l``vspL0i6wr;w$N)(g4mmgNLwiM;KiN>LDrqAPP-q;%%n7emr^9xRPD*{$AL+BQI5wdgu#;YYB%3(Yn!a&1$NLzmB?L|= zFhU&$%()`eW$q#AdX=ZS)G78K9T&6Lc-0DmCO4p+8LGy}oe?06AQujhURPWxQ5Kb( zFjje)Py_0xWu6OdMUEfzN~5CkaZVJcPt9@Z6n$Qtih|Sn;rxx#m_fZ)3H~2ru>Dx&qVH8rFkWc6W@%`G9&A^&z7$w%lbuKE htqZ|!Ub11v_W&8z8n@0?pxB0T1E+YWXClfCK delta 67 zcmZp0XmFSy&1g1J#+lJLP&li3BdHx_#FO|Fr%mMKmHLVjKr1}1s)Szr!W NfCnV7`LdiYBLJfz6FL9@ diff --git a/sqdb.py b/sqdb.py index 9bc3126..12208e4 100644 --- a/sqdb.py +++ b/sqdb.py @@ -2,6 +2,7 @@ from sqlalchemy import create_engine, MetaData, Table, Integer, String, \ Column, DateTime, ForeignKey, Numeric from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker + engine = create_engine('sqlite:///dick3.db') Session = sessionmaker(bind=engine) session = Session() @@ -20,14 +21,14 @@ class user(Base): user_fullname = Column(String) -#list = user(user_id = message.from_user.id, user_fullname = message.from_user.full_name) +# list = user(user_id = message.from_user.id, user_fullname = message.from_user.full_name) -class tert: - def adding(): + +def adding(): - session.add(lisq) - session.commit() + session.add() + session.commit() #tert.adding() # добавляет запись и коммитит @@ -38,5 +39,4 @@ class tert: -listq2 = bot.ident.lisq() -print(listq2) \ No newline at end of file +