diff options
author | David Baker <dave@matrix.org> | 2015-04-24 18:15:07 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2015-04-24 18:15:07 +0100 |
commit | 2f475bd5d5cd9426a38d748238a214aaf77be4a2 (patch) | |
tree | 7b9f5360d379616698bd3161cb102f5e328f1d8e /synapse/storage | |
parent | Check users in our table aren't on a different domain to the one we're config... (diff) | |
download | synapse-2f475bd5d5cd9426a38d748238a214aaf77be4a2.tar.xz |
pep8
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/registration.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py index c2efc3fd32..697d487126 100644 --- a/synapse/storage/registration.py +++ b/synapse/storage/registration.py @@ -156,9 +156,9 @@ class RegistrationStore(SQLBaseStore): def _all_users_on_domain_txn(self, txn, domain): sql = "SELECT COUNT(*) FROM users WHERE name NOT LIKE ?" - pat = "%:"+domain + pat = "%:" + domain cursor = txn.execute(sql, (pat,)) num_not_matching = cursor.fetchall()[0][0] if num_not_matching == 0: return True - return False \ No newline at end of file + return False |