This commit is contained in:
Pavel_Duron 2022-11-07 20:11:37 +10:00
parent 5d1e0e2d67
commit 6c17598623
2 changed files with 4 additions and 4 deletions

Binary file not shown.

8
sql.py
View File

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