This commit is contained in:
parent
91f5cdf483
commit
5d1e0e2d67
2
sql.py
2
sql.py
@ -4,7 +4,7 @@ import sqlite3 as sq
|
|||||||
async def db_start(): #подключение к бд
|
async def db_start(): #подключение к бд
|
||||||
global db, cur
|
global db, cur
|
||||||
|
|
||||||
db = sq.connect('dickpick.db')
|
db = sq.connect('users.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)''')
|
cur.execute(''''CREATE TABLE IF NOT EXISTS users(id INTEGER PRIMARY KEY, users_id INTEGER, user_name TEXT)''')
|
||||||
|
Loading…
Reference in New Issue
Block a user