fix: fixed an sqlite bug

This commit is contained in:
Seaswimmer 2023-08-01 22:19:32 -04:00
parent e89ecd4105
commit eead3223d1
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -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 (