Amend counts to only operate on collection records

This commit is contained in:
Claudio Ortolina
2025-04-06 08:36:04 +01:00
parent 19e6e17542
commit 83fa2e99a5
3 changed files with 35 additions and 41 deletions
@@ -30,8 +30,8 @@ defmodule MusicLibraryWeb.StatsLive.Index do
latest_record: latest_record,
page_title: gettext("Stats"),
nav_section: :stats,
records_by_artist: Records.count_records_by_artist(),
records_by_genre: Records.count_records_by_genre()
records_by_artist: Collection.count_records_by_artist(),
records_by_genre: Collection.count_records_by_genre()
)}
end