diff options
author | Erik Johnston <erik@matrix.org> | 2016-01-28 17:19:51 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-01-28 17:20:05 +0000 |
commit | 35981c8b71a2ce675f3b8414ca0e7920a5d1658e (patch) | |
tree | e921526099985bc8e8bf52404dd757da8c20e662 /synapse | |
parent | Cache filters (diff) | |
download | synapse-35981c8b71a2ce675f3b8414ca0e7920a5d1658e.tar.xz |
Fix test
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/api/filtering.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/api/filtering.py b/synapse/api/filtering.py index 6c13ada5df..6eff83e5f8 100644 --- a/synapse/api/filtering.py +++ b/synapse/api/filtering.py @@ -15,6 +15,8 @@ from synapse.api.errors import SynapseError from synapse.types import UserID, RoomID +import ujson as json + class Filtering(object): @@ -149,6 +151,9 @@ class FilterCollection(object): "include_leave", False ) + def __repr__(self): + return "<FilterCollection %s>" % (json.dumps(self._filter_json),) + def get_filter_json(self): return self._filter_json |