diff options
author | Jason Robinson <jasonr@matrix.org> | 2019-09-09 17:10:02 +0300 |
---|---|---|
committer | Jason Robinson <jasonr@matrix.org> | 2019-09-09 17:10:02 +0300 |
commit | aaed6b39e140195a0f2b48e4de0519e08f16a119 (patch) | |
tree | 3d25d8b5f5b4dcf5dbd01bcf139d84ab5f82e6a2 /synapse/storage | |
parent | Simplify count_real_users SQL to only count user_type is null rows (diff) | |
download | synapse-aaed6b39e140195a0f2b48e4de0519e08f16a119.tar.xz |
Fix code style, again
Signed-off-by: Jason Robinson <jasonr@matrix.org>
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/registration.py | 4 |
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"] |