fix: fixed blacklist_remove command

This commit is contained in:
Seaswimmer 2023-08-02 01:28:49 -04:00
parent 4fd2856efa
commit 98f5928af5
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -208,7 +208,7 @@ class MusicDownloader(commands.Cog):
@blacklist.command(name='remove') @blacklist.command(name='remove')
@checks.is_owner() @checks.is_owner()
async def blacklist_remove(self, ctx: commands.Context, user: discord.User): async def blacklist_remove(self, ctx: commands.Context, user: discord.User):
data_path = str(data_manager.cog_data_path()) + f"{os.sep}MusicDownloader{os.sep}Data" data_path = str(data_manager.cog_data_path()) + f"{os.sep}MusicDownloader"
db_path = os.path.join(data_path, "database.db") db_path = os.path.join(data_path, "database.db")
con = sqlite3.connect(db_path) con = sqlite3.connect(db_path)
cur = con.cursor() cur = con.cursor()