major refactors

This commit is contained in:
geoffrey45
2022-03-30 14:56:40 +03:00
parent 1a19fb61cd
commit 0c1e792839
21 changed files with 164 additions and 322 deletions
+8 -1
View File
@@ -30,7 +30,14 @@ def get_all_playlists():
@playlist_bp.route("/playlist/new", methods=["POST"])
def create_playlist():
data = request.get_json()
playlist = {"name": data["name"], "description": [], "tracks": []}
playlist = {
"name": data["name"],
"description": [],
"tracks": [],
"count": 0,
"lastUpdated": 0,
}
try:
p_in_db = instances.playlist_instance.get_playlist_by_name(playlist["name"])