fix migrations deleting all playlists

This commit is contained in:
mungai-njoroge
2024-03-11 11:33:59 +03:00
committed by Mungai Njoroge
parent ae031014a9
commit 99ec11565c
4 changed files with 18 additions and 10 deletions
+1 -2
View File
@@ -26,12 +26,11 @@ api = APIBlueprint("playlists", __name__, url_prefix="/playlists", abp_tags=[tag
PL = SQLitePlaylistMethods
class SendAllPlaylistsQuery(BaseModel):
no_images: bool = Field(False, description="Whether to include images")
@api.get("", methods=["GET"])
@api.get("")
def send_all_playlists(query: SendAllPlaylistsQuery):
"""
Gets all the playlists.