summary refs log tree commit diff
diff options
context:
space:
mode:
authorJason Robinson <jasonr@matrix.org>2019-09-09 17:10:02 +0300
committerJason Robinson <jasonr@matrix.org>2019-09-09 17:10:02 +0300
commitaaed6b39e140195a0f2b48e4de0519e08f16a119 (patch)
tree3d25d8b5f5b4dcf5dbd01bcf139d84ab5f82e6a2
parentSimplify count_real_users SQL to only count user_type is null rows (diff)
downloadsynapse-aaed6b39e140195a0f2b48e4de0519e08f16a119.tar.xz
Fix code style, again
Signed-off-by: Jason Robinson <jasonr@matrix.org>
-rw-r--r--synapse/storage/registration.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py
index c0ca25733b..109052fa41 100644
--- a/synapse/storage/registration.py
+++ b/synapse/storage/registration.py
@@ -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"]