forked from MirrorHub/synapse
Dear PyCharm, please indent sensibly for me. Thx.
This commit is contained in:
parent
aa11db5f11
commit
57c444b3ad
2 changed files with 3 additions and 3 deletions
|
@ -439,10 +439,10 @@ class AuthHandler(BaseHandler):
|
||||||
|
|
||||||
yield self.store.user_set_password_hash(user_id, password_hash)
|
yield self.store.user_set_password_hash(user_id, password_hash)
|
||||||
yield self.store.user_delete_access_tokens_except(
|
yield self.store.user_delete_access_tokens_except(
|
||||||
user_id, except_access_token_ids
|
user_id, except_access_token_ids
|
||||||
)
|
)
|
||||||
yield self.hs.get_pusherpool().remove_pushers_by_user_except_access_tokens(
|
yield self.hs.get_pusherpool().remove_pushers_by_user_except_access_tokens(
|
||||||
user_id, except_access_token_ids
|
user_id, except_access_token_ids
|
||||||
)
|
)
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
|
|
|
@ -212,7 +212,7 @@ class RegistrationStore(SQLBaseStore):
|
||||||
def f(txn):
|
def f(txn):
|
||||||
txn.execute(
|
txn.execute(
|
||||||
"SELECT id, token FROM access_tokens WHERE user_id = ? LIMIT 50",
|
"SELECT id, token FROM access_tokens WHERE user_id = ? LIMIT 50",
|
||||||
(user_id,)
|
(user_id,)
|
||||||
)
|
)
|
||||||
rows = txn.fetchall()
|
rows = txn.fetchall()
|
||||||
for r in rows:
|
for r in rows:
|
||||||
|
|
Loading…
Reference in a new issue