Finish add song endpoint
This commit is contained in:
parent
ba77a1857c
commit
4a3c75cd51
1 changed files with 4 additions and 6 deletions
|
@ -181,13 +181,11 @@ def add_song():
|
|||
|
||||
add_song_in_db(song)
|
||||
|
||||
# if song.uuid
|
||||
## add the song in the room if does not exists
|
||||
if song.uuid not in room.songs:
|
||||
room.songs[song.uuid] = (song, 1) # start with one vote
|
||||
|
||||
room.songs # TODO: add in room list
|
||||
|
||||
## HERE: add song in the room list
|
||||
|
||||
return {"artist": info.artist, "title": info.title, "tags": info.tags, "image_id": info.img_id}
|
||||
return {"success": True, "song": song}
|
||||
|
||||
|
||||
@app.get("/api/room/suggestions")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue