Add queue next endpoint

This commit is contained in:
Leonardo Segala 2025-08-01 22:07:39 +02:00
parent 51aafb9771
commit 2df62ff714
3 changed files with 24 additions and 4 deletions

View file

@ -24,6 +24,7 @@ class Room:
songs: dict[str, UserScoredSong] # canzoni + voto
history: list[Song] # canzoni riprodotte (in ordine)
playing: list[Song] # canzoni che sono i riproduzione
playing_idx: int
def rank_song(self, song: Song, user_score: int) -> float:
rank = 0.0