Show record count by format in stats dashboard

This commit is contained in:
Claudio Ortolina
2024-10-02 21:26:21 +01:00
parent 6edbb7e057
commit 62d792a244
4 changed files with 28 additions and 2 deletions
@@ -2,4 +2,11 @@ defmodule MusicLibraryWeb.StatsHTML do
use MusicLibraryWeb, :html
embed_templates "stats_html/*"
defp format_records_count(records_count_by_format) do
Enum.map(records_count_by_format, fn {format, count} ->
Integer.to_string(count) <> " " <> Atom.to_string(format)
end)
|> Enum.join(", ")
end
end