summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorJason Robinson <jasonr@matrix.org>2019-09-09 14:59:35 +0300
committerJason Robinson <jasonr@matrix.org>2019-09-09 14:59:35 +0300
commit62fac9d969cea98694093a5f80bed6bdd4848968 (patch)
treedfa40615c1fe9a3e2a41451d88e41eb466439352 /synapse
parentOnly count real users when checking for auto-creation of auto-join room (diff)
downloadsynapse-62fac9d969cea98694093a5f80bed6bdd4848968.tar.xz
Auto-fix a few code style issues
Signed-off-by: Jason Robinson <jasonr@matrix.org>
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/registration.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py
index b054d86ae0..9387b29503 100644
--- a/synapse/storage/registration.py
+++ b/synapse/storage/registration.py
@@ -332,9 +332,7 @@ class RegistrationWorkerStore(SQLBaseStore):
         Returns:
             Deferred[bool]: True if user 'user_type' is null or empty string
         """
-        res = yield self.runInteraction(
-            "is_real_user", self.is_real_user_txn, user_id
-        )
+        res = yield self.runInteraction("is_real_user", self.is_real_user_txn, user_id)
         return res
 
     @cachedInlineCallbacks()
@@ -451,7 +449,9 @@ 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 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)
             if rows:
                 return rows[0]["users"]