mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Force boolean
This commit is contained in:
parent
1d4ee854e2
commit
dea9f20f8c
@ -106,7 +106,8 @@ class PushRuleStore(SQLBaseStore):
|
|||||||
desc="bulk_get_push_rules_enabled",
|
desc="bulk_get_push_rules_enabled",
|
||||||
)
|
)
|
||||||
for row in rows:
|
for row in rows:
|
||||||
results.setdefault(row['user_name'], {})[row['rule_id']] = row['enabled']
|
enabled = bool(row['enabled'])
|
||||||
|
results.setdefault(row['user_name'], {})[row['rule_id']] = enabled
|
||||||
defer.returnValue(results)
|
defer.returnValue(results)
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
|
Loading…
Reference in New Issue
Block a user