Add queue endpoint

This commit is contained in:
Leonardo Segala 2025-08-01 21:39:46 +02:00
parent e22ad91601
commit 63bacf9aae
2 changed files with 38 additions and 10 deletions

View file

@ -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