Add typespec for category_statistics

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-10-11 14:58:55 +02:00
parent e94a537f30
commit b514d417c0
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -1674,6 +1674,7 @@ defmodule Mobilizon.Events do
|> Repo.all()
end
@spec category_statistics :: [{String.t(), non_neg_integer()}]
def category_statistics do
Event
|> filter_future_events(true)