mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-19 16:32:24 +01:00
Simplify count_real_users SQL to only count user_type is null rows
Signed-off-by: Jason Robinson <jasonr@matrix.org>
This commit is contained in:
parent
8c03cd0e5f
commit
e89fea4f04
1 changed files with 1 additions and 1 deletions
|
@ -450,7 +450,7 @@ class RegistrationWorkerStore(SQLBaseStore):
|
||||||
|
|
||||||
def _count_users(txn):
|
def _count_users(txn):
|
||||||
txn.execute(
|
txn.execute(
|
||||||
"SELECT COUNT(*) AS users FROM users where user_type is null or user_type = ''"
|
"SELECT COUNT(*) AS users FROM users where user_type is null"
|
||||||
)
|
)
|
||||||
rows = self.cursor_to_dict(txn)
|
rows = self.cursor_to_dict(txn)
|
||||||
if rows:
|
if rows:
|
||||||
|
|
Loading…
Reference in a new issue