fix: new artists played report on charts

This commit is contained in:
cwilvx
2024-10-14 17:45:18 +03:00
parent 24d52167ca
commit 6ead0d12df
2 changed files with 25 additions and 6 deletions
+1 -1
View File
@@ -200,7 +200,7 @@ def get_top_artists(query: ChartItemsQuery):
current_period_artists = get_artists_in_period(start_time, end_time)
previous_period_artists = get_artists_in_period(previous_start_time, start_time)
new_artists = calculate_new_artists(current_period_artists, previous_period_artists)
new_artists = calculate_new_artists(current_period_artists, start_time)
scrobble_trend = calculate_scrobble_trend(
len(current_period_artists), len(previous_period_artists)
)