forked from Pavel_Durov/python_bot
тст
This commit is contained in:
parent
57d313e4fe
commit
91f5cdf483
8
sql.py
8
sql.py
@ -11,12 +11,12 @@ async def db_start(): #подключение к бд
|
|||||||
db.commit()
|
db.commit()
|
||||||
|
|
||||||
async def add_user():
|
async def add_user():
|
||||||
cur.execute('''INSERT INTO users (users_id, user_name) VALUES (?, ?)''',[id1, fullname1])
|
await cur.execute('''INSERT INTO users (users_id, user_name) VALUES (?, ?)''',[id1, fullname1])
|
||||||
db.commit()
|
await db.commit()
|
||||||
|
|
||||||
async def close():
|
async def close():
|
||||||
db.commit()
|
await db.commit()
|
||||||
db.close()
|
await db.close()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user