Fix code style, again

Signed-off-by: Jason Robinson <jasonr@matrix.org>
pull/6004/head
Jason Robinson 2019-09-09 17:10:02 +03:00
parent e89fea4f04
commit aaed6b39e1
1 changed files with 1 additions and 3 deletions

View File

@ -449,9 +449,7 @@ class RegistrationWorkerStore(SQLBaseStore):
"""Counts all users without a special user_type registered on the homeserver."""
def _count_users(txn):
txn.execute(
"SELECT COUNT(*) AS users FROM users where user_type is null"
)
txn.execute("SELECT COUNT(*) AS users FROM users where user_type is null")
rows = self.cursor_to_dict(txn)
if rows:
return rows[0]["users"]