mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-25 11:05:49 +03:00
Fix code style, again
Signed-off-by: Jason Robinson <jasonr@matrix.org>
This commit is contained in:
parent
e89fea4f04
commit
aaed6b39e1
1 changed files with 1 additions and 3 deletions
|
@ -449,9 +449,7 @@ class RegistrationWorkerStore(SQLBaseStore):
|
||||||
"""Counts all users without a special user_type registered on the homeserver."""
|
"""Counts all users without a special user_type registered on the homeserver."""
|
||||||
|
|
||||||
def _count_users(txn):
|
def _count_users(txn):
|
||||||
txn.execute(
|
txn.execute("SELECT COUNT(*) AS users FROM users where user_type is null")
|
||||||
"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:
|
||||||
return rows[0]["users"]
|
return rows[0]["users"]
|
||||||
|
|
Loading…
Reference in a new issue