This commit is contained in:
parent
5d1e0e2d67
commit
6c17598623
BIN
__pycache__/sql.cpython-310.pyc
Normal file
BIN
__pycache__/sql.cpython-310.pyc
Normal file
Binary file not shown.
8
sql.py
8
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()
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user