Removed hard-coded decade

This commit is contained in:
Sumner Evans
2021-02-03 13:46:33 -07:00
parent be32d97896
commit 75061b321e
3 changed files with 13 additions and 3 deletions

View File

@@ -5,6 +5,7 @@ from typing import Any, Callable, Dict, Optional, Set, Tuple, Type
from ..adapters import AlbumSearchQuery
from ..adapters.api_objects import Genre, Song
from ..util import this_decade
class RepeatType(Enum):
@@ -89,7 +90,7 @@ class UIState:
current_album_search_query: AlbumSearchQuery = AlbumSearchQuery(
AlbumSearchQuery.Type.RANDOM,
genre=_DefaultGenre(),
year_range=(2010, 2020),
year_range=this_decade(),
)
active_playlist_id: Optional[str] = None