This commit is contained in:
Pavel_Duron 2022-11-07 20:08:19 +10:00
parent 57d313e4fe
commit 91f5cdf483

8
sql.py
View File

@ -11,12 +11,12 @@ async def db_start(): #подключение к бд
db.commit()
async def add_user():
cur.execute('''INSERT INTO users (users_id, user_name) VALUES (?, ?)''',[id1, fullname1])
db.commit()
await cur.execute('''INSERT INTO users (users_id, user_name) VALUES (?, ?)''',[id1, fullname1])
await db.commit()
async def close():
db.commit()
db.close()
await db.commit()
await db.close()