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

Auto-fix a few code style issues

parent be618e05
Branches
Tags
No related merge requests found
...@@ -332,9 +332,7 @@ class RegistrationWorkerStore(SQLBaseStore): ...@@ -332,9 +332,7 @@ class RegistrationWorkerStore(SQLBaseStore):
Returns: Returns:
Deferred[bool]: True if user 'user_type' is null or empty string Deferred[bool]: True if user 'user_type' is null or empty string
""" """
res = yield self.runInteraction( res = yield self.runInteraction("is_real_user", self.is_real_user_txn, user_id)
"is_real_user", self.is_real_user_txn, user_id
)
return res return res
@cachedInlineCallbacks() @cachedInlineCallbacks()
...@@ -451,7 +449,9 @@ class RegistrationWorkerStore(SQLBaseStore): ...@@ -451,7 +449,9 @@ 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("SELECT COUNT(*) AS users FROM users where user_type is null or user_type = ''") txn.execute(
"SELECT COUNT(*) AS users FROM users where user_type is null or user_type = ''"
)
rows = self.cursor_to_dict(txn) rows = self.cursor_to_dict(txn)
if rows: if rows:
return rows[0]["users"] return rows[0]["users"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment