Skip to content
Snippets Groups Projects
Commit e89fea4f authored by Jason Robinson's avatar Jason Robinson
Browse files

Simplify count_real_users SQL to only count user_type is null rows

parent 8c03cd0e
Branches
Tags
No related merge requests found
...@@ -450,7 +450,7 @@ class RegistrationWorkerStore(SQLBaseStore): ...@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment