supplement mixes using other remote similar albums and artist data

This commit is contained in:
cwilvx
2024-11-01 12:23:41 +03:00
parent eb4c65de83
commit 1fdd5ba4d1
8 changed files with 171 additions and 31 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ from app.store.tracks import TrackStore
from app.utils.dates import seconds_to_time_string
def get_artists_in_period(start_time: int, end_time: int):
def get_artists_in_period(start_time: int | float, end_time: int | float):
scrobbles = ScrobbleTable.get_all_in_period(start_time, end_time)
artists: Any = defaultdict(lambda: {"playcount": 0, "playduration": 0})