mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
pep8
This commit is contained in:
parent
a7b51f4539
commit
2f475bd5d5
@ -156,7 +156,7 @@ class RegistrationStore(SQLBaseStore):
|
|||||||
|
|
||||||
def _all_users_on_domain_txn(self, txn, domain):
|
def _all_users_on_domain_txn(self, txn, domain):
|
||||||
sql = "SELECT COUNT(*) FROM users WHERE name NOT LIKE ?"
|
sql = "SELECT COUNT(*) FROM users WHERE name NOT LIKE ?"
|
||||||
pat = "%:"+domain
|
pat = "%:" + domain
|
||||||
cursor = txn.execute(sql, (pat,))
|
cursor = txn.execute(sql, (pat,))
|
||||||
num_not_matching = cursor.fetchall()[0][0]
|
num_not_matching = cursor.fetchall()[0][0]
|
||||||
if num_not_matching == 0:
|
if num_not_matching == 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user