diff options
author | Erik Johnston <erik@matrix.org> | 2015-10-22 15:02:35 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-10-22 15:02:35 +0100 |
commit | 232beb3a3c28ccdc5388daa9396d5054b7768b12 (patch) | |
tree | 8ad28ddbf431e3107272760586565cb68be04934 /synapse/handlers | |
parent | Limit max number of SQL vars (diff) | |
download | synapse-232beb3a3c28ccdc5388daa9396d5054b7768b12.tar.xz |
Use namedtuple as return value
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/search.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/search.py b/synapse/handlers/search.py index f53e5d35ac..bdc79ffc55 100644 --- a/synapse/handlers/search.py +++ b/synapse/handlers/search.py @@ -66,7 +66,9 @@ class SearchHandler(BaseHandler): room_ids = filtr.filter_rooms(room_ids) - rank_map, event_map = yield self.store.search_msgs(room_ids, search_term, keys) + rank_map, event_map, _ = yield self.store.search_msgs( + room_ids, search_term, keys + ) filtered_events = filtr.filter(event_map.values()) |