Add queue endpoint
This commit is contained in:
parent
e22ad91601
commit
63bacf9aae
2 changed files with 38 additions and 10 deletions
|
@ -21,8 +21,9 @@ class Room:
|
|||
pin: int | None
|
||||
tags: set[str]
|
||||
|
||||
songs: dict[str, UserScoredSong]
|
||||
history: list[Song]
|
||||
songs: dict[str, UserScoredSong] # canzoni + voto
|
||||
history: list[Song] # canzoni riprodotte (in ordine)
|
||||
playing: list[Song] # canzoni che sono i riproduzione
|
||||
|
||||
def rank_song(self, song: Song, user_score: int) -> float:
|
||||
rank = 0.0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue