mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-29 02:41:20 +00:00
major refactors
This commit is contained in:
1 parent
1a19fb61cd
commit
0c1e792839
21 files changed
+164
-322
No files matched your search
@@ -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"])
|
||||
|
||||
Reference in new issue
Block a user