add route to remove playlist banner

This commit is contained in:
mungai-njoroge
2023-07-26 10:56:23 +03:00
parent 6439b512e9
commit 728c6c2def
4 changed files with 51 additions and 10 deletions
+7
View File
@@ -177,6 +177,13 @@ class SQLitePlaylistMethods:
with SQLiteManager(userdata_db=True) as cur:
cur.execute(sql, (pos, playlistid))
@staticmethod
def remove_banner(playlistid: int):
sql = """UPDATE playlists SET image = NULL WHERE id = ?"""
with SQLiteManager(userdata_db=True) as cur:
cur.execute(sql, (playlistid,))
@staticmethod
def remove_tracks_from_playlist(playlistid: int, tracks: list[dict[str, int]]):
"""