Improve dashboard

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-10-15 11:04:05 +02:00
parent dacec2672b
commit f6480cb37e
10 changed files with 163 additions and 34 deletions

View File

@@ -26,8 +26,12 @@ defmodule Mobilizon.Service.Statistics do
Events.count_local_events()
end
defp create_cache(:confirmed_participations_to_local_events) do
Events.count_confirmed_participants_for_local_events()
end
defp create_cache(:local_comments) do
Discussions.count_local_comments()
Discussions.count_local_comments_under_events()
end
defp create_cache(:local_groups) do
@@ -39,7 +43,7 @@ defmodule Mobilizon.Service.Statistics do
end
defp create_cache(:federation_comments) do
Discussions.count_comments()
Discussions.count_comments_under_events()
end
defp create_cache(:federation_groups) do