This commit is contained in:
Pavel_Duron 2022-11-07 20:02:30 +10:00
parent c1053d99f4
commit 91aa03a226
2 changed files with 2 additions and 2 deletions

Binary file not shown.

4
sql.py
View File

@ -7,11 +7,11 @@ async def db_start(): #подключение к бд
db = sq.connect('dickpick.db') db = sq.connect('dickpick.db')
cur = db.cursor() cur = db.cursor()
cur.execute(''''CREATE TABLE IF NOT EXISTS users(id INTEGER PRIMARY KEY, users_id INTEGER, user_name TEXT, dick_size INTEGER)''') cur.execute(''''CREATE TABLE IF NOT EXISTS users(id INTEGER PRIMARY KEY, users_id INTEGER, user_name TEXT)''')
db.commit() db.commit()
async def add_user(): async def add_user():
cur.execute('''INSERT INTO users (users_id, user_name) VALUES (?)''',[id1, fullname1]) cur.execute('''INSERT INTO users (users_id, user_name) VALUES (?, ?)''',[id1, fullname1])
db.commit() db.commit()
async def close(): async def close():