diff options
author | Erik Johnston <erik@matrix.org> | 2016-05-31 17:24:30 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-05-31 17:24:30 +0100 |
commit | dea9f20f8ce105624933a819d7949d31b69aa141 (patch) | |
tree | b159b0c1e6f9cd4bb101d2925988deb07f234006 | |
parent | Fix typo (diff) | |
download | synapse-dea9f20f8ce105624933a819d7949d31b69aa141.tar.xz |
Force boolean
-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 |