mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-29 16:34:43 +00:00
add route to remove playlist banner
This commit is contained in:
1 parent
6439b512e9
commit
728c6c2def
4 files changed
+51
-10
No files matched your search
@@ -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]]):
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user