pull/130/head
David Baker 2015-04-24 18:15:07 +01:00
parent a7b51f4539
commit 2f475bd5d5
1 changed files with 2 additions and 2 deletions

View File

@ -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
return False