From 6c17598623d419ba76aa7b36ad194eddd69836d5 Mon Sep 17 00:00:00 2001 From: Pavel_Duron Date: Mon, 7 Nov 2022 20:11:37 +1000 Subject: [PATCH] =?UTF-8?q?=D1=82=D1=81=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __pycache__/sql.cpython-310.pyc | Bin 0 -> 771 bytes sql.py | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 __pycache__/sql.cpython-310.pyc diff --git a/__pycache__/sql.cpython-310.pyc b/__pycache__/sql.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7f12f731d3a7e0d36df8ace01bcc96d1c64d4cb8 GIT binary patch literal 771 zcmZ`%O>5gQ7?$KOHA@b=j2?9uEFPtovCA0ivY{2z&K)xBN^!MgczUjD)e{j|aMA`rZWtsa9B zNZ=_NVnKv+jfO>%@w+SC)oMnSI$DBp)SbUN(ej24&%2@MR ze_Za0A0%h&h@b7X)qGQJGx@xjRV?GDSr`U}s7n)+^?Y8H+7K}w`sG5Z zS{esV6I7q8a-l2Zm-TEm(ch4yFid0q?1~qoaji!eSNgo3=hju1)BTGpL&Z2(x{%tn z<6FJSmySbmhjg*D;s3STh3ZDDMj6oRRv8j6pGR@Zlgti$(hkV_jS4X5)_fuRG&ugq zQ`SG&V+UdAN)H-K-x^Cw2G-oo(t10PGqeyQw;g*BDfp9Sp|b%sUOBCy{XN*S3r!xvzJ;Y0*5*QQ7=W}BT|JW)vC*(0)Rgb*W$4RU UEf&-26+CjJEE+}Bp*vmoF9~a%00000 literal 0 HcmV?d00001 diff --git a/sql.py b/sql.py index 29ecb9b..59ec481 100644 --- a/sql.py +++ b/sql.py @@ -11,12 +11,12 @@ async def db_start(): #подключение к бд db.commit() async def add_user(): - await cur.execute('''INSERT INTO users (users_id, user_name) VALUES (?, ?)''',[id1, fullname1]) - await db.commit() + cur.execute('''INSERT INTO users (users_id, user_name) VALUES (?, ?)''') + db.commit() async def close(): - await db.commit() - await db.close() + db.commit() + db.close()