mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2025-03-15 11:09:24 +00:00
Don't count deactivated users in statistics
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
1a3a3602d1
commit
8035fb743d
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ defmodule Mobilizon.Users do
|
|||
Counts users.
|
||||
"""
|
||||
@spec count_users :: integer
|
||||
def count_users, do: Repo.one(from(u in User, select: count(u.id)))
|
||||
def count_users, do: Repo.one(from(u in User, select: count(u.id), where: u.disabled == false))
|
||||
|
||||
@doc """
|
||||
Gets a settings for an user.
|
||||
|
|
Loading…
Add table
Reference in a new issue