From 3e2c34c9da01c2c27decceb045aa9a94df6825f8 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Fri, 29 Aug 2025 18:32:18 +0300 Subject: [PATCH] Limit stats scrobble activity to 50 --- lib/music_library_web/live/stats_live/index.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/music_library_web/live/stats_live/index.ex b/lib/music_library_web/live/stats_live/index.ex index 3b74794e..425ca979 100644 --- a/lib/music_library_web/live/stats_live/index.ex +++ b/lib/music_library_web/live/stats_live/index.ex @@ -11,7 +11,7 @@ defmodule MusicLibraryWeb.StatsLive.Index do def mount(_params, _session, socket) do current_date = Date.utc_today() latest_record = Collection.get_latest_record!() - recent_tracks = LastFm.get_scrobbled_tracks() + recent_tracks = LastFm.get_scrobbled_tracks(50) records_by_artists = Collection.count_records_by_artist(limit: 20) records_by_genre = Collection.count_records_by_genre(limit: 20) records_on_this_day = Collection.get_records_on_this_day(current_date)