Add room range
This commit is contained in:
parent
4a3c75cd51
commit
0d659beffb
2 changed files with 8 additions and 1 deletions
|
@ -34,6 +34,7 @@ class Room:
|
|||
name: str
|
||||
pin: int | None
|
||||
tags: set[str]
|
||||
range_size: int # in meters ??
|
||||
|
||||
songs: dict[str, UserScoredSong] # all songs + user score (the playlist)
|
||||
history: list[Song] # all songs previously played
|
||||
|
@ -125,6 +126,7 @@ def test_algo():
|
|||
"test",
|
||||
None,
|
||||
set(["rock", "rap"]),
|
||||
100,
|
||||
{
|
||||
"paulham": (songs[0], 7),
|
||||
"cisco": (songs[1], 5),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue