add route to remove playlist banner

This commit is contained in:
mungai-njoroge committed 2023-07-26 10:56:23 +03:00
1 parent 6439b512e9
commit 728c6c2def
4 files changed
+51 -10

No files matched your search

+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]]):
"""