fix: fixed an sqlite bug
This commit is contained in:
parent
e89ecd4105
commit
eead3223d1
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ class MusicDownloader(commands.Cog):
|
||||||
os.makedirs(data_path)
|
os.makedirs(data_path)
|
||||||
db_path = os.path.join(data_path, "database.db")
|
db_path = os.path.join(data_path, "database.db")
|
||||||
if not os.path.isfile(db_path):
|
if not os.path.isfile(db_path):
|
||||||
con = sqlite3.connect(data_path)
|
con = sqlite3.connect(db_path)
|
||||||
cur = con.cursor()
|
cur = con.cursor()
|
||||||
cur.execute('''
|
cur.execute('''
|
||||||
CREATE TABLE IF NOT EXISTS blacklist_log (
|
CREATE TABLE IF NOT EXISTS blacklist_log (
|
||||||
|
|
Loading…
Reference in a new issue