mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
move "determining last updated date" to the server
This commit is contained in:
@@ -12,6 +12,8 @@ from app.lib import playlistlib
|
||||
from flask import Blueprint
|
||||
from flask import request
|
||||
|
||||
from app.helpers import create_new_date
|
||||
|
||||
playlist_bp = Blueprint("playlist", __name__, url_prefix="/")
|
||||
|
||||
PlaylistExists = exceptions.PlaylistExists
|
||||
@@ -38,7 +40,7 @@ def create_playlist():
|
||||
"name": data["name"],
|
||||
"description": "",
|
||||
"pre_tracks": [],
|
||||
"lastUpdated": data["lastUpdated"],
|
||||
"lastUpdated": create_new_date(),
|
||||
"image": "",
|
||||
"thumb": "",
|
||||
}
|
||||
@@ -99,7 +101,7 @@ def update_playlist(playlistid: str):
|
||||
playlist = {
|
||||
"name": str(data.get("name")).strip(),
|
||||
"description": str(data.get("description").strip()),
|
||||
"lastUpdated": str(data.get("lastUpdated")),
|
||||
"lastUpdated": create_new_date(),
|
||||
"image": None,
|
||||
"thumb": None,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user