summary refs log tree commit diff
path: root/synapse/api
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-01-28 18:26:16 +0000
committerErik Johnston <erik@matrix.org>2016-01-28 18:26:16 +0000
commitf3af1840cbd58a769a856c65de35fba912802e4d (patch)
treee921526099985bc8e8bf52404dd757da8c20e662 /synapse/api
parentPrune on fetching (diff)
parentFix test (diff)
downloadsynapse-f3af1840cbd58a769a856c65de35fba912802e4d.tar.xz
Merge pull request #537 from matrix-org/erikj/cache_filters
Cache user filters.
Diffstat (limited to '')
-rw-r--r--synapse/api/filtering.py5
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