diff options
author | David Baker <dave@matrix.org> | 2016-06-02 13:35:25 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2016-06-02 13:35:25 +0100 |
commit | 3a3fb2f6f9d958d62a96391491f794042d1a419c (patch) | |
tree | b0085e37f02db4f019440086a91905057843889b /synapse/storage/push_rule.py | |
parent | Email unsubscribing that may in theory, work (diff) | |
parent | Split out the auth handler (diff) | |
download | synapse-3a3fb2f6f9d958d62a96391491f794042d1a419c.tar.xz |
Merge branch 'dbkr/split_out_auth_handler' into dbkr/email_unsubscribe
Diffstat (limited to 'synapse/storage/push_rule.py')
-rw-r--r-- | synapse/storage/push_rule.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/push_rule.py b/synapse/storage/push_rule.py index 216a8bf69c..ebb97c8474 100644 --- a/synapse/storage/push_rule.py +++ b/synapse/storage/push_rule.py @@ -106,7 +106,8 @@ class PushRuleStore(SQLBaseStore): desc="bulk_get_push_rules_enabled", ) 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.inlineCallbacks |